Chris Lattner | aa9c549 | 2006-11-20 17:55:30 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386 | grep fucomi.*st.[12] |
2 | ; PR1012 | ||||
3 | |||||
4 | float %foo(float *%col.2.0) { | ||||
5 | %tmp = load float* %col.2.0 ; <float> [#uses=3] | ||||
6 | %tmp16 = setlt float %tmp, 0.000000e+00 ; <bool> [#uses=1] | ||||
7 | %tmp20 = sub float -0.000000e+00, %tmp ; <float> [#uses=1] | ||||
8 | %iftmp.2.0 = select bool %tmp16, float %tmp20, float %tmp | ||||
9 | ret float %iftmp.2.0 | ||||
10 | } | ||||
11 |