blob: 4bdf4590b07c5c8fc952a4258710f3c900595b85 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mcpu=i386 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep {fucomi.*st.\[12\]}
3; PR1012
4
Tanya Lattner632e88a2008-02-21 07:42:26 +00005define float @foo(float* %col.2.0) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006 %tmp = load float* %col.2.0 ; <float> [#uses=3]
Tanya Lattner632e88a2008-02-21 07:42:26 +00007 %tmp16 = fcmp olt float %tmp, 0.000000e+00 ; <i1> [#uses=1]
Dan Gohman7ce405e2009-06-04 22:49:04 +00008 %tmp20 = fsub float -0.000000e+00, %tmp ; <float> [#uses=1]
Tanya Lattner632e88a2008-02-21 07:42:26 +00009 %iftmp.2.0 = select i1 %tmp16, float %tmp20, float %tmp ; <float> [#uses=1]
10 ret float %iftmp.2.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
12