[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll
Reid Spencer
reid at x10sys.com
Fri Dec 8 09:39:17 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
2006-12-08-ICmp-Combining.ll added (r1.1)
---
Log message:
For PR950: http://llvm.org/PR950 :
Add a test for a regression in combining of ICmp instructions.
---
Diffs of the changes: (+16 -0)
2006-12-08-ICmp-Combining.ll | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll:1.1
*** /dev/null Fri Dec 8 11:39:06 2006
--- llvm/test/Regression/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll Fri Dec 8 11:38:55 2006
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep '%bothcond ='
+ bool %Doit_bb(int %i.0) {
+ bb: ; preds = %newFuncRoot
+ %tmp = setgt int %i.0, 0 ; <bool> [#uses=1]
+ %tmp.not = xor bool %tmp, true ; <bool> [#uses=1]
+ %tmp2 = setgt int %i.0, 8 ; <bool> [#uses=1]
+ %bothcond = or bool %tmp.not, %tmp2 ; <bool> [#uses=1]
+ br bool %bothcond, label %exitTrue, label %exitFalse
+
+ exitTrue: ; preds = %bb
+ ret bool true
+
+ exitFalse: ; preds = %bb
+ ret bool false
+
+ }
More information about the llvm-commits
mailing list