2007-09-07 21:32:51 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86-64 | grep xor | count 4
|
2008-04-14 17:56:54 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 12
|
2008-02-14 05:39:46 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 | grep fldz
|
|
|
|
; RUN: llvm-as < %s | llc -march=x86 | not grep fldl
|
2007-09-07 21:32:51 +00:00
|
|
|
|
|
|
|
declare void @bar(double %x)
|
|
|
|
declare void @barf(float %x)
|
|
|
|
|
2008-03-31 23:20:09 +00:00
|
|
|
define double @foo() nounwind {
|
2007-09-07 21:32:51 +00:00
|
|
|
call void @bar(double 0.0)
|
|
|
|
ret double 0.0
|
|
|
|
}
|
2008-03-31 23:20:09 +00:00
|
|
|
define float @foof() nounwind {
|
2007-09-07 21:32:51 +00:00
|
|
|
call void @barf(float 0.0)
|
|
|
|
ret float 0.0
|
|
|
|
}
|