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