vml[as].f32 cause stalls in following advanced SIMD instructions. Avoid using
[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-NOT: vmls
11 ; NEONFP-NOT: fcpys
12 ; NEONFP:     vmul.f32
13 ; NEONFP:     vsub.f32
14 ; NEONFP:     fmrs
15
16         %0 = fmul float %a, %b
17         %1 = fsub float %acc, %0
18         ret float %1
19 }
20