[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2006-11-27-XorBug.ll
Chris Lattner
sabre at nondot.org
Mon Nov 27 11:47:37 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
2006-11-27-XorBug.ll added (r1.1)
---
Log message:
testcase for PR1014: http://llvm.org/PR1014
---
Diffs of the changes: (+11 -0)
2006-11-27-XorBug.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/2006-11-27-XorBug.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2006-11-27-XorBug.ll:1.1
*** /dev/null Mon Nov 27 13:47:32 2006
--- llvm/test/Regression/Transforms/InstCombine/2006-11-27-XorBug.ll Mon Nov 27 13:47:22 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'and.*32' &&
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'or.*153'
+ ; PR1014
+
+ int %test(int %tmp1) {
+ %ovm = and int %tmp1, 32 ; <int> [#uses=1]
+ %ov3 = add int %ovm, 145 ; <int> [#uses=2]
+ %ov110 = xor int %ov3, 153
+ ret int %ov110
+ }
+
More information about the llvm-commits
mailing list