summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Blackfin/cmp64.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Blackfin/cmp64.ll')
-rw-r--r--test/CodeGen/Blackfin/cmp64.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/Blackfin/cmp64.ll b/test/CodeGen/Blackfin/cmp64.ll
new file mode 100644
index 0000000..ef5bf45
--- /dev/null
+++ b/test/CodeGen/Blackfin/cmp64.ll
@@ -0,0 +1,17 @@
+; RUN: llc < %s -march=bfin
+
+; This test tries to use a JustCC register as a data operand for MOVEcc. It
+; calls copyRegToReg(JustCC -> DP), failing because JustCC can only be copied to
+; D. The proper solution would be to restrict the virtual register to D only.
+
+define i32 @main() {
+entry:
+ br label %loopentry
+
+loopentry:
+ %done = icmp sle i64 undef, 5
+ br i1 %done, label %loopentry, label %exit.1
+
+exit.1:
+ ret i32 0
+}
OpenPOWER on IntegriCloud