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-09-05 17:24:07 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 12
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2008-09-05 17:24:07 +00:00
|
|
|
declare float @qux(float %y)
|
2007-08-02 14:27:55 +00:00
|
|
|
|
2008-09-05 17:24:07 +00:00
|
|
|
define float @array(float %a) nounwind {
|
2009-06-04 22:49:04 +00:00
|
|
|
%n = fmul float %a, 9.0
|
2008-09-05 17:24:07 +00:00
|
|
|
%m = call float @qux(float %n)
|
2009-06-04 22:49:04 +00:00
|
|
|
%o = fmul float %m, 9.0
|
2007-08-02 14:27:55 +00:00
|
|
|
ret float %o
|
|
|
|
}
|