Dan Gohman | b144a52 | 2009-09-11 00:34:46 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86-64 | FileCheck %s |
Dan Gohman | b10a595 | 2009-09-12 23:45:47 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | grep xor | count 2 |
Dan Gohman | f154271b | 2009-09-03 22:53:57 +0000 | [diff] [blame] | 3 | |
| 4 | ; CHECK: doo: |
Dan Gohman | b144a52 | 2009-09-11 00:34:46 +0000 | [diff] [blame] | 5 | ; CHECK: xor |
Dan Gohman | f154271b | 2009-09-03 22:53:57 +0000 | [diff] [blame] | 6 | define double @doo(double %x) nounwind { |
| 7 | %y = fsub double -0.0, %x |
| 8 | ret double %y |
| 9 | } |
| 10 | |
| 11 | ; CHECK: foo: |
Dan Gohman | b144a52 | 2009-09-11 00:34:46 +0000 | [diff] [blame] | 12 | ; CHECK: xor |
Dan Gohman | f154271b | 2009-09-03 22:53:57 +0000 | [diff] [blame] | 13 | define float @foo(float %x) nounwind { |
| 14 | %y = fsub float -0.0, %x |
| 15 | ret float %y |
| 16 | } |