mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
57dd315a3b
If there is a store after the load node, then there is a chain, which means that there is another user. Thus, asking hasOneUser would fail. Instead we ask hasNUsesOfValue on the 'data' value. llvm-svn: 131183
14 lines
325 B
LLVM
14 lines
325 B
LLVM
; 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
|
|
}
|
|
|