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