Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 | grep LCPI | count 3 |
| 2 | ; RUN: llc < %s -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6 |
| 3 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep LCPI | count 3 |
| 4 | ; RUN: llc < %s -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 12 |
Dan Gohman | ca9f99d | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 5 | |
Evan Cheng | 8209d3e | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 6 | declare float @qux(float %y) |
Dan Gohman | ca9f99d | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 7 | |
Evan Cheng | 8209d3e | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 8 | define float @array(float %a) nounwind { |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 9 | %n = fmul float %a, 9.0 |
Evan Cheng | 8209d3e | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 10 | %m = call float @qux(float %n) |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 11 | %o = fmul float %m, 9.0 |
Dan Gohman | ca9f99d | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 12 | ret float %o |
| 13 | } |