Dan Gohman | 1182170 | 2007-07-27 17:16:43 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse -enable-unsafe-fp-math | \ |
| 2 | ; RUN: grep -v sp | grep xorps | wc -l | grep 2 |
| 3 | |
| 4 | ; Don't fold the incoming stack arguments into the xorps instructions used |
| 5 | ; to do floating-point negations, because the arguments aren't vectors |
| 6 | ; and aren't vector-aligned. |
| 7 | |
| 8 | define void @foo(float* %p, float* %q, float %s, float %y) { |
| 9 | %ss = sub float -0.0, %s |
| 10 | %yy = sub float -0.0, %y |
| 11 | store float %ss, float* %p |
| 12 | store float %yy, float* %q |
| 13 | ret void |
| 14 | } |