2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -march=x86-64 | grep LCPI | count 3
|
|
|
|
; RUN: llc < %s -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6
|
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep LCPI | count 3
|
|
|
|
; RUN: llc < %s -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
|
|
|
|
}
|