mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
116cc72ed4
Summary: r250697 fixed the mapping for ARM mode. We have to do the same for Thumb2 otherwise the same llvm.arm.ssat() will generate different saturating amount for ARM and Thumb. r250697: http://reviews.llvm.org/rL250697 Reviewers: rmaprath Subscribers: aemerson, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D15653 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256115 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
401 B
LLVM
12 lines
401 B
LLVM
; RUN: not llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s
|
|
; RUN: not llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s
|
|
|
|
; immediate argument > upper-bound
|
|
; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.usat
|
|
define i32 @usat1() nounwind {
|
|
%tmp = call i32 @llvm.arm.usat(i32 128, i32 32)
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @llvm.arm.usat(i32, i32) nounwind readnone
|