switch the flag for using NEON for SP floating point to a subtarget 'feature'.
[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 | FileCheck %s
3 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
4 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s
5
6 define float @test1(float %acc, float %a, float %b) nounwind {
7 ; CHECK: vnmla.f32 s2, s1, s0
8 entry:
9         %0 = fmul float %a, %b
10         %1 = fsub float -0.0, %0
11         %2 = fsub float %1, %acc
12         ret float %2
13 }
14
15 define float @test2(float %acc, float %a, float %b) nounwind {
16 ; CHECK: vnmla.f32 s2, s1, s0
17 entry:
18         %0 = fmul float %a, %b
19         %1 = fmul float -1.0, %0
20         %2 = fsub float %1, %acc
21         ret float %2
22 }
23