David Goodwin | 53e4471 | 2009-08-04 20:39:05 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fabss\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1 |
| 2 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {vabs.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1 |
| 3 | ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fabss\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1 |
| 4 | |
| 5 | define float @test(float %a, float %b) { |
| 6 | entry: |
| 7 | %dum = fadd float %a, %b |
| 8 | %0 = tail call float @fabsf(float %dum) |
| 9 | %dum1 = fadd float %0, %b |
| 10 | ret float %dum1 |
| 11 | } |
| 12 | |
| 13 | declare float @fabsf(float) |