Revert 117518 and 117519 for now. They changed scheduling and cause MC tests to fail...
[oota-llvm.git] / test / CodeGen / ARM / fmscs.ll
1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
2 ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
3 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
4 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s -check-prefix=CORTEXA9
5
6 define float @test(float %acc, float %a, float %b) {
7 entry:
8         %0 = fmul float %a, %b
9         %1 = fsub float %0, %acc
10         ret float %1
11 }
12
13 ; VFP2: test:
14 ; VFP2:         vnmls.f32       s2, s1, s0
15
16 ; NFP1: test:
17 ; NFP1:         vnmls.f32       s2, s1, s0
18 ; NFP0: test:
19 ; NFP0:         vnmls.f32       s2, s1, s0
20
21 ; CORTEXA8: test:
22 ; CORTEXA8:     vnmls.f32       s1, s2, s0
23 ; CORTEXA9: test:
24 ; CORTEXA9:     vnmls.f32       s0, s1, s2