summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-26 18:26:53 +0000
committerChris Lattner <sabre@nondot.org>2006-10-26 18:26:53 +0000
commit1ddbd94a7bdb80acbfb4412ac5b34a4531fb1a2f (patch)
tree50975ad17378e743ba9bf8091eb33d97c45e5420
parentfac5f9110c77892de13bab284c1df3ba8510f1f8 (diff)
downloadbcm5719-llvm-1ddbd94a7bdb80acbfb4412ac5b34a4531fb1a2f.tar.gz
bcm5719-llvm-1ddbd94a7bdb80acbfb4412ac5b34a4531fb1a2f.zip
new testcase, should not reassoc fp vector
llvm-svn: 31199
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/2006-10-26-VectorReassoc.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/2006-10-26-VectorReassoc.ll b/llvm/test/Regression/Transforms/InstCombine/2006-10-26-VectorReassoc.ll
new file mode 100644
index 00000000000..cf68f63e686
--- /dev/null
+++ b/llvm/test/Regression/Transforms/InstCombine/2006-10-26-VectorReassoc.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep mul | wc -l | grep 2
+
+
+<4 x float> %test(<4 x float> %V) {
+ %Y = mul <4 x float> %V, <float 1.0, float 2.0, float 3.0, float 4.0>
+ %Z = mul <4 x float> %Y, <float 1.0, float 200000.0, float -3.0, float 4.0>
+ ret <4 x float> %Z
+}
OpenPOWER on IntegriCloud