blob: 19359a1ae6bcb9400debd9d5eb968d31e3c1ca80 [file] [log] [blame]
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
Jim Grosbach7ec7a0e2010-03-25 23:47:34 +00002; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +00003; 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
David Goodwin42a83f22009-08-04 17:53:06 +00005
6define float @test(float %acc, float %a, float %b) {
7entry:
8 %0 = fmul float %a, %b
9 %1 = fsub float %0, %acc
10 ret float %1
11}
12
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +000013; 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:
Evan Cheng9e08ee52010-10-28 02:00:25 +000022; CORTEXA8: vnmls.f32 s1, s2, s0
Edward O'Callaghan11cc4fa2009-11-22 14:23:33 +000023; CORTEXA9: test:
Evan Cheng9e08ee52010-10-28 02:00:25 +000024; CORTEXA9: vnmls.f32 s0, s1, s2