aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-09-08 07:24:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-09-08 07:24:20 +0000
commitfa12482d0c5e17795a2802a1c5cc27fcc03b3bd5 (patch)
tree2c7bf75347a6ee796d4e039b1cce73eaf95d89bf /test
parent36978b9c619ce36daf7f9548b2cced83006e304e (diff)
downloadexternal_llvm-fa12482d0c5e17795a2802a1c5cc27fcc03b3bd5.zip
external_llvm-fa12482d0c5e17795a2802a1c5cc27fcc03b3bd5.tar.gz
external_llvm-fa12482d0c5e17795a2802a1c5cc27fcc03b3bd5.tar.bz2
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/test-not-cmp.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/test-not-cmp.ll b/test/CodeGen/X86/test-not-cmp.ll
new file mode 100644
index 0000000..1064893
--- /dev/null
+++ b/test/CodeGen/X86/test-not-cmp.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-as < %s | llc -march=x86 | grep test
+
+int %test(int %X, int* %y) {
+ %tmp = load int* %y
+ %tmp = seteq int %tmp, 0
+ br bool %tmp, label %ReturnBlock, label %cond_true
+
+cond_true:
+ ret int 1
+
+ReturnBlock:
+ ret int 0
+}