summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-10 21:36:07 +0000
committerChris Lattner <sabre@nondot.org>2006-11-10 21:36:07 +0000
commit6832780bdab188a55f98b9b12a61b08f42a9e793 (patch)
treef5748ce8d98a5383cf0c97096a06fbae286cdb4a /test
parent37a84c7d8bda439082b883e33be6ab88b4cce236 (diff)
downloadllvm-6832780bdab188a55f98b9b12a61b08f42a9e793.tar.gz
llvm-6832780bdab188a55f98b9b12a61b08f42a9e793.tar.bz2
llvm-6832780bdab188a55f98b9b12a61b08f42a9e793.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll b/test/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll
new file mode 100644
index 0000000000..972418c037
--- /dev/null
+++ b/test/CodeGen/Generic/2006-11-10-DAGCombineMiscompile.ll
@@ -0,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
+}
+