mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
caf90336a9
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 llvm-svn: 256115
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 < lower-bound
|
|
; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.usat
|
|
define i32 @usat1() nounwind {
|
|
%tmp = call i32 @llvm.arm.usat(i32 128, i32 -1)
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @llvm.arm.usat(i32, i32) nounwind readnone
|