blob: 7b9e029b676e8a5a7c008c48d76b8d36606c65e6 [file] [log] [blame]
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
2; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | FileCheck %s -check-prefix=NFP1
3; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | FileCheck %s -check-prefix=NFP0
4; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8
5; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s -check-prefix=CORTEXA9
David Goodwin42a83f22009-08-04 17:53:06 +00006
7define float @test(float %acc, float %a, float %b) {
8entry:
9 %0 = fmul float %a, %b
10 %1 = fsub float %0, %acc
11 ret float %1
12}
13
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +000014; VFP2: test:
15; VFP2: vnmls.f32 s2, s1, s0
16
17; NFP1: test:
18; NFP1: vnmls.f32 s2, s1, s0
19; NFP0: test:
20; NFP0: vnmls.f32 s2, s1, s0
21
22; CORTEXA8: test:
23; CORTEXA8: vnmls.f32 s2, s1, s0
24; CORTEXA9: test:
25; CORTEXA9: vnmls.f32 s2, s1, s0