Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s |
Sandeep Patel | b7a11b5 | 2010-09-02 20:19:24 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s |
Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s |
| 4 | ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s |
David Goodwin | 42a83f2 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 5 | |
Sandeep Patel | b7a11b5 | 2010-09-02 20:19:24 +0000 | [diff] [blame] | 6 | define arm_aapcs_vfpcc float @test1(float %a, float %b) nounwind { |
| 7 | ; CHECK: vnmul.f32 s0, s0, s1 |
David Goodwin | 42a83f2 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 8 | entry: |
| 9 | %0 = fmul float %a, %b |
David Goodwin | af37f34 | 2009-08-10 22:58:08 +0000 | [diff] [blame] | 10 | %1 = fsub float -0.0, %0 |
David Goodwin | 42a83f2 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 11 | ret float %1 |
| 12 | } |
| 13 | |
Sandeep Patel | b7a11b5 | 2010-09-02 20:19:24 +0000 | [diff] [blame] | 14 | define arm_aapcs_vfpcc float @test2(float %a, float %b) nounwind { |
| 15 | ; CHECK: vnmul.f32 s0, s0, s1 |
David Goodwin | 831b500 | 2009-08-04 18:11:59 +0000 | [diff] [blame] | 16 | entry: |
| 17 | %0 = fmul float %a, %b |
| 18 | %1 = fmul float -1.0, %0 |
| 19 | ret float %1 |
| 20 | } |
| 21 | |