[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll
Chris Lattner
sabre at nondot.org
Fri Nov 10 13:36:21 PST 2006
Changes in directory llvm/test/Regression/CodeGen/Generic:
2006-11-10-DAGCombineMiscompile.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+14 -0)
2006-11-10-DAGCombineMiscompile.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll:1.1
*** /dev/null Fri Nov 10 15:36:17 2006
--- llvm/test/Regression/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll Fri Nov 10 15:36:07 2006
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi
+
+ void %test(short %div.0.i.i.i.i, int %L_num.0.i.i.i.i, int %tmp1.i.i206.i.i, short* %P) {
+ %X = shl short %div.0.i.i.i.i, ubyte 1 ; <short> [#uses=1]
+ %tmp28.i.i.i.i = shl int %L_num.0.i.i.i.i, ubyte 1 ; <int> [#uses=2]
+ %tmp31.i.i.i.i = setlt int %tmp28.i.i.i.i, %tmp1.i.i206.i.i ; <bool> [#uses=2]
+
+ %tmp31.i.i.i.i = cast bool %tmp31.i.i.i.i to short ; <short> [#uses=1]
+ %tmp371.i.i.i.i1 = or short %tmp31.i.i.i.i, %X ; <short> [#uses=1]
+ %div.0.be.i.i.i.i = xor short %tmp371.i.i.i.i1, 1 ; <short> [#uses=1]
+ store short %div.0.be.i.i.i.i, short* %P
+ ret void
+ }
+
More information about the llvm-commits
mailing list