blob: 5195a11bcd41c479db8befda749f02dda5c470bb [file] [log] [blame]
Dan Gohman8aef09b2007-09-07 21:32:51 +00001; 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 Lattnerd67ee692008-02-14 05:39:46 +00003; RUN: llvm-as < %s | llc -march=x86 | grep fldz
4; RUN: llvm-as < %s | llc -march=x86 | not grep fldl
Dan Gohman8aef09b2007-09-07 21:32:51 +00005
6declare void @bar(double %x)
7declare void @barf(float %x)
8
Dale Johannesen6e04eac2008-03-31 23:20:09 +00009define double @foo() nounwind {
Dan Gohman8aef09b2007-09-07 21:32:51 +000010 call void @bar(double 0.0)
11 ret double 0.0
12}
Dale Johannesen6e04eac2008-03-31 23:20:09 +000013define float @foof() nounwind {
Dan Gohman8aef09b2007-09-07 21:32:51 +000014 call void @barf(float 0.0)
15 ret float 0.0
16}