aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-13 03:21:27 +0000
committerChris Lattner <sabre@nondot.org>2006-09-13 03:21:27 +0000
commit06f7ee9133d94a2491821400f357956de7fb0dcc (patch)
tree44b3e68c7058789aefc520942cd9a8730c34fbaa
parent56eac5f6f78b2aec32179d13115f57cd4bcc5675 (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30282 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/jump_sign.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/X86/jump_sign.ll b/test/CodeGen/X86/jump_sign.ll
new file mode 100644
index 0000000000..2ef4026d93
--- /dev/null
+++ b/test/CodeGen/X86/jump_sign.ll
@@ -0,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(...)
+