summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2011-05-09-loaduse.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2011-05-09-loaduse.ll')
-rw-r--r--test/CodeGen/X86/2011-05-09-loaduse.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2011-05-09-loaduse.ll b/test/CodeGen/X86/2011-05-09-loaduse.ll
new file mode 100644
index 0000000000..8673d7433f
--- /dev/null
+++ b/test/CodeGen/X86/2011-05-09-loaduse.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=x86 -mcpu=corei7 | FileCheck %s
+
+;CHECK: test
+;CHECK-not: pshufd
+;CHECK: ret
+define float @test(<4 x float>* %A) nounwind {
+entry:
+ %T = load <4 x float>* %A
+ %R = extractelement <4 x float> %T, i32 3
+ store <4 x float><float 0.0, float 0.0, float 0.0, float 0.0>, <4 x float>* %A
+ ret float %R
+}
+