[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/jump_sign.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 12 20:21:41 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
jump_sign.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+20 -0)
jump_sign.ll | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/jump_sign.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/jump_sign.ll:1.1
*** /dev/null Tue Sep 12 22:21:37 2006
--- llvm/test/Regression/CodeGen/X86/jump_sign.ll Tue Sep 12 22:21:27 2006
***************
*** 0 ****
--- 1,20 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep js
+ int %f(int %X) {
+ entry:
+ %tmp1 = add int %X, 1 ; <int> [#uses=1]
+ %tmp = setlt int %tmp1, 0 ; <bool> [#uses=1]
+ br bool %tmp, label %cond_true, label %cond_next
+
+ cond_true: ; preds = %entry
+ %tmp2 = tail call int (...)* %bar( ) ; <int> [#uses=0]
+ br label %cond_next
+
+ cond_next: ; preds = %entry, %cond_true
+ %tmp3 = tail call int (...)* %baz( ) ; <int> [#uses=0]
+ ret int undef
+ }
+
+ declare int %bar(...)
+
+ declare int %baz(...)
+
More information about the llvm-commits
mailing list