| ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| ; RUN: llc < %s -mtriple=i686-- -mcpu=i386 | FileCheck %s --check-prefix=BASE |
| ; RUN: llc < %s -mtriple=i686-- -mcpu=pentiumpro | FileCheck %s --check-prefix=CMOV |
| define float @foo(ptr %col) { |
| ; BASE-NEXT: movl {{[0-9]+}}(%esp), %eax |
| ; BASE-NEXT: fucom %st(1) |
| ; BASE-NEXT: # kill: def $ah killed $ah killed $ax |
| ; CMOV-NEXT: movl {{[0-9]+}}(%esp), %eax |
| ; CMOV-NEXT: fucomi %st(1), %st |
| ; CMOV-NEXT: fcmovnbe %st(1), %st |
| %t = load float, ptr %col |
| %t16 = fcmp olt float %t, 0.0 |
| %t20 = fsub float -0.000000e+00, %t |
| %ift = select i1 %t16, float %t20, float %t |