2015-10-19 19:44:24 +08:00
|
|
|
; RUN: not llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s
|
2015-12-20 14:41:44 +08:00
|
|
|
; RUN: not llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s
|
2015-10-19 19:44:24 +08:00
|
|
|
|
|
|
|
; immediate argument > upper-bound
|
|
|
|
; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.ssat
|
|
|
|
define i32 @ssat1() nounwind {
|
|
|
|
%tmp = call i32 @llvm.arm.ssat(i32 128, i32 33)
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @llvm.arm.ssat(i32, i32) nounwind readnone
|