2009-09-09 01:54:48 +02: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 16:27:55 +02:00
|
|
|
|
2008-09-05 19:24:07 +02:00
|
|
|
declare float @qux(float %y)
|
2007-08-02 16:27:55 +02:00
|
|
|
|
2008-09-05 19:24:07 +02:00
|
|
|
define float @array(float %a) nounwind {
|
2009-06-05 00:49:04 +02:00
|
|
|
%n = fmul float %a, 9.0
|
2008-09-05 19:24:07 +02:00
|
|
|
%m = call float @qux(float %n)
|
2009-06-05 00:49:04 +02:00
|
|
|
%o = fmul float %m, 9.0
|
2007-08-02 16:27:55 +02:00
|
|
|
ret float %o
|
|
|
|
}
|