David Goodwin | dd19ce4 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 1 | ; XFAIL: * |
David Goodwin | 1deef6d | 2009-08-04 18:11:59 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2 |
| 3 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2 |
| 4 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2 |
David Goodwin | ff4b881 | 2009-08-10 22:58:08 +0000 | [diff] [blame^] | 5 | ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a8 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2 |
| 6 | ; RUN: llvm-as < %s | llc -march=arm -mcpu=cortex-a9 | grep -E {fnmuls\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 2 |
David Goodwin | dd19ce4 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 7 | |
Dan Gohman | b2fceb9 | 2009-08-10 16:48:40 +0000 | [diff] [blame] | 8 | define float @test1(float %a, float %b) nounwind { |
David Goodwin | dd19ce4 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 9 | entry: |
| 10 | %0 = fmul float %a, %b |
David Goodwin | ff4b881 | 2009-08-10 22:58:08 +0000 | [diff] [blame^] | 11 | %1 = fsub float -0.0, %0 |
David Goodwin | dd19ce4 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 12 | ret float %1 |
| 13 | } |
| 14 | |
Dan Gohman | b2fceb9 | 2009-08-10 16:48:40 +0000 | [diff] [blame] | 15 | define float @test2(float %a, float %b) nounwind { |
David Goodwin | 1deef6d | 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 | |