Remove neonfp attribute and instead set default based on CPU string. Add -arm-use...
[oota-llvm.git] / test / CodeGen / ARM / fnmscs.ll
1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
2 ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | FileCheck %s
3 ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | FileCheck %s
4 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
5 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s
6
7 define float @test1(float %acc, float %a, float %b) nounwind {
8 ; CHECK: fnmscs s2, s1, s0 
9 entry:
10         %0 = fmul float %a, %b
11         %1 = fsub float -0.0, %0
12         %2 = fsub float %1, %acc
13         ret float %2
14 }
15
16 define float @test2(float %acc, float %a, float %b) nounwind {
17 ; CHECK: fnmscs s2, s1, s0 
18 entry:
19         %0 = fmul float %a, %b
20         %1 = fmul float -1.0, %0
21         %2 = fsub float %1, %acc
22         ret float %2
23 }
24