Dan Gohman | ca9f99d | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | wc -l | grep 3 |
Evan Cheng | 75fed15 | 2007-08-14 09:16:00 +0000 | [diff] [blame^] | 2 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | wc -l | grep 3 |
| 3 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats |& | grep asm-printer | grep 13 |
Dan Gohman | ca9f99d | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 4 | |
| 5 | declare float @qux(float %y) |
| 6 | |
| 7 | define float @array(float %a) { |
| 8 | %n = mul float %a, 9.0 |
| 9 | %m = call float @qux(float %n) |
| 10 | %o = mul float %m, 9.0 |
| 11 | ret float %o |
| 12 | } |