R600: Add support for 24-bit MAD instructions
[oota-llvm.git] / test / CodeGen / R600 / fneg.ll
1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
3 ; XXX: There is a bug in the DAGCombiner that lowers fneg to XOR, this test
4 ; will need to be changed once it is fixed.
5
6 ; CHECK: @fneg_v2
7 ; CHECK: XOR_INT
8 ; CHECK: XOR_INT
9 define void @fneg_v2(<2 x float> addrspace(1)* nocapture %out, <2 x float> %in) {
10 entry:
11   %0 = fsub <2 x float> <float -0.000000e+00, float -0.000000e+00>, %in
12   store <2 x float> %0, <2 x float> addrspace(1)* %out
13   ret void
14 }
15
16 ; CHECK: @fneg_v4
17 ; CHECK: XOR_INT
18 ; CHECK: XOR_INT
19 ; CHECK: XOR_INT
20 ; CHECK: XOR_INT
21 define void @fneg_v4(<4 x float> addrspace(1)* nocapture %out, <4 x float> %in) {
22 entry:
23   %0 = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, %in
24   store <4 x float> %0, <4 x float> addrspace(1)* %out
25   ret void
26 }