blob: 486119b83d10f9fa2de881483af419c66182a2f8 [file] [log] [blame]
David Goodwindd19ce42009-08-04 17:53:06 +00001; XFAIL: *
David Goodwin62f7d1942009-08-10 23:06:57 +00002; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | FileCheck %s
3; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | FileCheck %s
4; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | FileCheck %s
5; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a8 | FileCheck %s
6; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a9 | FileCheck %s
David Goodwindd19ce42009-08-04 17:53:06 +00007
Dan Gohmanb2fceb92009-08-10 16:48:40 +00008define float @test1(float %a, float %b) nounwind {
David Goodwin62f7d1942009-08-10 23:06:57 +00009; CHECK: fnmscs s2, s1, s0
David Goodwindd19ce42009-08-04 17:53:06 +000010entry:
11 %0 = fmul float %a, %b
David Goodwinff4b8812009-08-10 22:58:08 +000012 %1 = fsub float -0.0, %0
David Goodwindd19ce42009-08-04 17:53:06 +000013 ret float %1
14}
15
Dan Gohmanb2fceb92009-08-10 16:48:40 +000016define float @test2(float %a, float %b) nounwind {
David Goodwin62f7d1942009-08-10 23:06:57 +000017; CHECK: fnmscs s2, s1, s0
David Goodwin1deef6d2009-08-04 18:11:59 +000018entry:
19 %0 = fmul float %a, %b
20 %1 = fmul float -1.0, %0
21 ret float %1
22}
23