mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +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
400 B
LLVM
12 lines
400 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.ssat
|
|
define i32 @ssat1() nounwind {
|
|
%tmp = call i32 @llvm.arm.ssat(i32 128, i32 0)
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @llvm.arm.ssat(i32, i32) nounwind readnone
|