blob: fbc660f01e2ba95dc6a686d204de40d36768a1e5 [file] [log] [blame]
Chris Lattner06885fdc2007-08-14 16:14:10 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
2; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | count 3
Chris Lattner7c2a3d12007-08-14 16:19:35 +00003; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 9
Dan Gohmanca9f99d2007-08-02 14:27:55 +00004
Chris Lattner06885fdc2007-08-14 16:14:10 +00005declare fastcc float @qux(float %y)
Dan Gohmanca9f99d2007-08-02 14:27:55 +00006
Chris Lattner06885fdc2007-08-14 16:14:10 +00007define fastcc float @array(float %a) {
Dan Gohmanca9f99d2007-08-02 14:27:55 +00008 %n = mul float %a, 9.0
Chris Lattner06885fdc2007-08-14 16:14:10 +00009 %m = call fastcc float @qux(float %n)
Dan Gohmanca9f99d2007-08-02 14:27:55 +000010 %o = mul float %m, 9.0
11 ret float %o
12}