summaryrefslogtreecommitdiff
path: root/test/CodeGen/Blackfin/cmp-small-imm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Blackfin/cmp-small-imm.ll')
-rw-r--r--test/CodeGen/Blackfin/cmp-small-imm.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Blackfin/cmp-small-imm.ll b/test/CodeGen/Blackfin/cmp-small-imm.ll
new file mode 100644
index 0000000000..7d87cb07f3
--- /dev/null
+++ b/test/CodeGen/Blackfin/cmp-small-imm.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=bfin > %t
+; XFAIL: *
+; Assertion failed: (isUsed(Reg) && "Using an undefined register!")
+; function forward, file RegisterScavenging.cpp, line 259.
+
+define i1 @cmp3(i32 %A) {
+ %R = icmp uge i32 %A, 2
+ ret i1 %R
+}