blob: 40caaa6b936a3ed3c8a91096f5bfb606c0b63448 [file] [log] [blame]
Chris Lattner06885fdc2007-08-14 16:14:10 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
Dale Johannesenf0d6daf2008-04-14 17:56:54 +00002; RUN: llvm-as < %s | llc -march=x86-64 -stats -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
Evan Cheng8209d3e2008-09-05 17:24:07 +00004; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 12
Dan Gohmanca9f99d2007-08-02 14:27:55 +00005
Evan Cheng8209d3e2008-09-05 17:24:07 +00006declare float @qux(float %y)
Dan Gohmanca9f99d2007-08-02 14:27:55 +00007
Evan Cheng8209d3e2008-09-05 17:24:07 +00008define float @array(float %a) nounwind {
Dan Gohmanca9f99d2007-08-02 14:27:55 +00009 %n = mul float %a, 9.0
Evan Cheng8209d3e2008-09-05 17:24:07 +000010 %m = call float @qux(float %n)
Dan Gohmanca9f99d2007-08-02 14:27:55 +000011 %o = mul float %m, 9.0
12 ret float %o
13}