summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/usat-lower.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM/usat-lower.ll')
-rw-r--r--llvm/test/CodeGen/ARM/usat-lower.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/usat-lower.ll b/llvm/test/CodeGen/ARM/usat-lower.ll
new file mode 100644
index 00000000000..c19cc9c39c4
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/usat-lower.ll
@@ -0,0 +1,10 @@
+; RUN: not llc < %s -O1 -mtriple=armv6-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
OpenPOWER on IntegriCloud