Update tests.
[oota-llvm.git] / test / CodeGen / ARM / fnmacs.ll
1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
2 ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | FileCheck %s -check-prefix=NEON
3 ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | FileCheck %s -check-prefix=NEONFP
4
5 define float @test(float %acc, float %a, float %b) {
6 entry:
7 ; VFP2: fnmacs
8 ; NEON: fnmacs
9
10 ; NEONFP:     vmls
11 ; NEONFP-NOT: fcpys
12 ; NEONFP:     fmrs
13
14         %0 = fmul float %a, %b
15         %1 = fsub float %acc, %0
16         ret float %1
17 }
18