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
6 define float @test1(float %acc, float %a, float %b) nounwind {
7 ; CHECK: vnmla.f32 s{{.*}}, s{{.*}}, s{{.*}}
10 %1 = fsub float -0.0, %0
11 %2 = fsub float %1, %acc
15 define float @test2(float %acc, float %a, float %b) nounwind {
16 ; CHECK: vnmla.f32 s{{.*}}, s{{.*}}, s{{.*}}
18 %0 = fmul float %a, %b
19 %1 = fmul float -1.0, %0
20 %2 = fsub float %1, %acc