aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2011-05-09-loaduse.ll
blob: c772e4c7f4e4f7104d1676e7ae2cb061170f9ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -march=x86 -mcpu=corei7 | FileCheck %s

;CHECK-LABEL: 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
}