[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 16 20:58:41 PDT 2005
Changes in directory llvm/test/Regression/Transforms/InstCombine:
2005-06-16-SetCCOrSetCCMiscompile.ll added (r1.1)
---
Log message:
new testcase for PR586: http://llvm.cs.uiuc.edu/PR586
---
Diffs of the changes: (+15 -0)
2005-06-16-SetCCOrSetCCMiscompile.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll:1.1
*** /dev/null Thu Jun 16 22:58:40 2005
--- llvm/test/Regression/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll Thu Jun 16 22:58:30 2005
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret bool true'
+ ; PR586
+
+ %g_07918478 = external global uint ; <uint*> [#uses=1]
+
+ implementation ; Functions:
+
+ bool %test() {
+ %tmp.0 = load uint* %g_07918478 ; <uint> [#uses=2]
+ %tmp.1 = setne uint %tmp.0, 0 ; <bool> [#uses=1]
+ %tmp.4 = setlt uint %tmp.0, 4111 ; <bool> [#uses=1]
+ %bothcond = or bool %tmp.1, %tmp.4 ; <bool> [#uses=1]
+ ret bool %bothcond
+ }
+
More information about the llvm-commits
mailing list