blob: 05388f9b2a96e8a42e1b222ce08a92357b23b467 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64 | grep LCPI | count 3
2; RUN: llc < %s -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6
3; RUN: llc < %s -march=x86 -mattr=+sse2 | grep LCPI | count 3
4; RUN: llc < %s -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 Gohman7ce405e2009-06-04 22:49:04 +00009 %n = fmul float %a, 9.0
Evan Cheng8209d3e2008-09-05 17:24:07 +000010 %m = call float @qux(float %n)
Dan Gohman7ce405e2009-06-04 22:49:04 +000011 %o = fmul float %m, 9.0
Dan Gohmanca9f99d2007-08-02 14:27:55 +000012 ret float %o
13}