1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
6 define void @fneg_v2(<2 x float> addrspace(1)* nocapture %out, <2 x float> %in) {
8 %0 = fsub <2 x float> <float -0.000000e+00, float -0.000000e+00>, %in
9 store <2 x float> %0, <2 x float> addrspace(1)* %out
18 define void @fneg_v4(<4 x float> addrspace(1)* nocapture %out, <4 x float> %in) {
20 %0 = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, %in
21 store <4 x float> %0, <4 x float> addrspace(1)* %out
25 ; DAGCombiner will transform:
26 ; (fneg (f32 bitcast (i32 a))) => (f32 bitcast (xor (i32 a), 0x80000000))
27 ; unless the target returns true for isNegFree()
32 define void @fneg_free(float addrspace(1)* %out, i32 %in) {
34 %0 = bitcast i32 %in to float
35 %1 = fsub float 0.0, %0
36 store float %1, float addrspace(1)* %out