blob: 969eb7274670a8a1b46d16a8dccef07244243c14 [file] [log] [blame]
Evan Chengcc7a5b92009-10-25 07:53:48 +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=0 | FileCheck %s -check-prefix=NEON
3; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | FileCheck %s -check-prefix=NEONFP
David Goodwin42a83f22009-08-04 17:53:06 +00004
5define float @test(float %acc, float %a, float %b) {
6entry:
Evan Chengcc7a5b92009-10-25 07:53:48 +00007; VFP2: fnmacs
8; NEON: fnmacs
9
10; NEONFP: vmls
11; NEONFP-NOT: fcpys
12; NEONFP: fmrs
13
David Goodwin42a83f22009-08-04 17:53:06 +000014 %0 = fmul float %a, %b
15 %1 = fsub float %acc, %0
16 ret float %1
17}
18