summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-02 06:35:38 +0000
committerChris Lattner <sabre@nondot.org>2006-02-02 06:35:38 +0000
commit29dd2d7d15aeeb6cf2502e7056f4915ed2ba45e0 (patch)
tree5a6bd027427a376eb18e4e516a7f820af17a8a5b
parent8b6e4e6e3e7a4b6455d01f30370931ec46224780 (diff)
downloadllvm-29dd2d7d15aeeb6cf2502e7056f4915ed2ba45e0.tar.gz
llvm-29dd2d7d15aeeb6cf2502e7056f4915ed2ba45e0.tar.bz2
llvm-29dd2d7d15aeeb6cf2502e7056f4915ed2ba45e0.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25897 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/compare-add.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/compare-add.ll b/test/CodeGen/X86/compare-add.ll
new file mode 100644
index 0000000000..5665ad4829
--- /dev/null
+++ b/test/CodeGen/X86/compare-add.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 &&
+; RUN: llvm-as < %s | llc -march=x86 | not grep add
+bool %X(int %X) {
+ %Y = add int %X, 14
+ %Z = setne int %Y, 12345
+ ret bool %Z
+}
+