| NAKAMURA Takumi | 5b6198df | 2011-03-16 23:01:31 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s |
| Jakob Stoklund Olesen | 18fd84c | 2011-04-05 20:20:26 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s |
| NAKAMURA Takumi | 5b6198df | 2011-03-16 23:01:31 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s |
| 4 | ; CHECK: LCPI |
| 5 | ; CHECK: LCPI |
| 6 | ; CHECK: LCPI |
| 7 | ; CHECK-NOT: LCPI |
| 8 | |
| 9 | ; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X64stat |
| 10 | ; X64stat: 6 asm-printer |
| 11 | |
| 12 | ; RUN: llc < %s -march=x86 -mattr=+sse2 -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X32stat |
| 13 | ; X32stat: 12 asm-printer |
| Dan Gohman | fa3eeee | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 14 | |
| Evan Cheng | 4f0d215 | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 15 | declare float @qux(float %y) |
| Dan Gohman | fa3eeee | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 16 | |
| Evan Cheng | 4f0d215 | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 17 | define float @array(float %a) nounwind { |
| Dan Gohman | a5b9645 | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 18 | %n = fmul float %a, 9.0 |
| Evan Cheng | 4f0d215 | 2008-09-05 17:24:07 +0000 | [diff] [blame] | 19 | %m = call float @qux(float %n) |
| Dan Gohman | a5b9645 | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 20 | %o = fmul float %m, 9.0 |
| Dan Gohman | fa3eeee | 2007-08-02 14:27:55 +0000 | [diff] [blame] | 21 | ret float %o |
| 22 | } |