blob: 3223885feda9020b0c5167a9432d329db9c51562 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
Sandeep Patel0ca17f72010-09-02 20:19:24 +00002; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
Dan Gohmanc8054d92009-09-09 00:09:15 +00003; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
4; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s
David Goodwin3b9c52c2009-08-04 17:53:06 +00005
Sandeep Patel0ca17f72010-09-02 20:19:24 +00006define arm_aapcs_vfpcc float @test1(float %a, float %b) nounwind {
7; CHECK: vnmul.f32 s0, s0, s1
David Goodwin3b9c52c2009-08-04 17:53:06 +00008entry:
9 %0 = fmul float %a, %b
David Goodwin9e7c7e72009-08-10 22:58:08 +000010 %1 = fsub float -0.0, %0
David Goodwin3b9c52c2009-08-04 17:53:06 +000011 ret float %1
12}
13
Sandeep Patel0ca17f72010-09-02 20:19:24 +000014define arm_aapcs_vfpcc float @test2(float %a, float %b) nounwind {
15; CHECK: vnmul.f32 s0, s0, s1
David Goodwina2824d52009-08-04 18:11:59 +000016entry:
17 %0 = fmul float %a, %b
18 %1 = fmul float -1.0, %0
19 ret float %1
20}
21