aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-06-29 21:40:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-06-29 21:40:30 +0000
commitcdc85a58a011a6af4f0b3967bfa83c2f2a141446 (patch)
tree733187cdec307a15da1e4797d2d7374d5d7b3864 /test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll
parentc908dcde45c6d7ddff0443cbc174a7cbfec21d1b (diff)
downloadexternal_llvm-cdc85a58a011a6af4f0b3967bfa83c2f2a141446.zip
external_llvm-cdc85a58a011a6af4f0b3967bfa83c2f2a141446.tar.gz
external_llvm-cdc85a58a011a6af4f0b3967bfa83c2f2a141446.tar.bz2
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll')
-rw-r--r--test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll b/test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll
new file mode 100644
index 0000000..73ecf69
--- /dev/null
+++ b/test/CodeGen/X86/2007-06-29-VecFPConstantCSEBug.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | | llc -march=x86 -mattr=+sse2
+
+define void @test(<4 x float>* %arg) {
+ %tmp89 = getelementptr <4 x float>* %arg, i64 3
+ %tmp1144 = sub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, zeroinitializer
+ store <4 x float> %tmp1144, <4 x float>* null
+ %tmp1149 = load <4 x float>* %tmp89
+ %tmp1150 = sub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, %tmp1149
+ store <4 x float> %tmp1150, <4 x float>* %tmp89
+ ret void
+}