blob: 9967bf8909ab033f8cc28c2ae0c6648fb17934c2 [file] [log] [blame]
Chris Lattner06885fdc2007-08-14 16:14:10 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
Dale Johannesenbf23d3f2008-04-08 00:14:17 +00002; RUN: llvm-as < %s | llc -march=x86-64 -stats -disable-required-unwind-tables -info-output-file - | grep asm-printer | grep 6
Chris Lattner06885fdc2007-08-14 16:14:10 +00003; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | count 3
Dale Johannesenbf23d3f2008-04-08 00:14:17 +00004; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -disable-required-unwind-tables -info-output-file - | grep asm-printer | grep 8
Dan Gohmanca9f99d2007-08-02 14:27:55 +00005
Chris Lattner06885fdc2007-08-14 16:14:10 +00006declare fastcc float @qux(float %y)
Dan Gohmanca9f99d2007-08-02 14:27:55 +00007
Dale Johannesen6e04eac2008-03-31 23:20:09 +00008define fastcc float @array(float %a) nounwind {
Dan Gohmanca9f99d2007-08-02 14:27:55 +00009 %n = mul float %a, 9.0
Chris Lattner06885fdc2007-08-14 16:14:10 +000010 %m = call fastcc float @qux(float %n)
Dan Gohmanca9f99d2007-08-02 14:27:55 +000011 %o = mul float %m, 9.0
12 ret float %o
13}