Dan Gohman | 8aef09b | 2007-09-07 21:32:51 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86-64 | grep xor | count 4 |
| 2 | ; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 12 |
Chris Lattner | d67ee69 | 2008-02-14 05:39:46 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s | llc -march=x86 | grep fldz |
| 4 | ; RUN: llvm-as < %s | llc -march=x86 | not grep fldl |
Dan Gohman | 8aef09b | 2007-09-07 21:32:51 +0000 | [diff] [blame] | 5 | |
| 6 | declare void @bar(double %x) |
| 7 | declare void @barf(float %x) |
| 8 | |
| 9 | define double @foo() { |
| 10 | call void @bar(double 0.0) |
| 11 | ret double 0.0 |
| 12 | } |
| 13 | define float @foof() { |
| 14 | call void @barf(float 0.0) |
| 15 | ret float 0.0 |
| 16 | } |