diff options
Diffstat (limited to 'test/CodeGen/ARM/usat-upper.ll')
| -rw-r--r-- | test/CodeGen/ARM/usat-upper.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/usat-upper.ll b/test/CodeGen/ARM/usat-upper.ll new file mode 100644 index 000000000000..84ad694725b4 --- /dev/null +++ b/test/CodeGen/ARM/usat-upper.ll @@ -0,0 +1,11 @@ +; 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 |
