1 ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | FileCheck %s
2 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | FileCheck %s
3 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | FileCheck %s
4 ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a8 | FileCheck %s
5 ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a9 | FileCheck %s
7 define float @test1(float %acc, float %a, float %b) nounwind {
8 ; CHECK: fnmscs s2, s1, s0
10 %0 = fmul float %a, %b
11 %1 = fsub float -0.0, %0
12 %2 = fsub float %1, %acc
16 define float @test2(float %acc, float %a, float %b) nounwind {
17 ; CHECK: fnmscs s2, s1, s0
19 %0 = fmul float %a, %b
20 %1 = fmul float -1.0, %0
21 %2 = fsub float %1, %acc