2007-08-14 16:14:10 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
|
2008-04-14 17:56:54 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6
|
2007-08-14 16:14:10 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | count 3
|
2008-04-14 17:56:54 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 8
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2007-08-14 16:14:10 +00:00
|
|
|
declare fastcc float @qux(float %y)
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2008-03-31 23:20:09 +00:00
|
|
|
define fastcc float @array(float %a) nounwind {
|
2007-08-02 14:27:55 +00:00
|
|
|
%n = mul float %a, 9.0
|
2007-08-14 16:14:10 +00:00
|
|
|
%m = call fastcc float @qux(float %n)
|
2007-08-02 14:27:55 +00:00
|
|
|
%o = mul float %m, 9.0
|
|
|
|
ret float %o
|
|
|
|
}
|