blob: 4d25fca1eb11b8682fc9e67e91723b77c361fb10 [file] [log] [blame]
Chris Lattnerea562482007-08-05 18:48:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -enable-unsafe-fp-math | \
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: grep -v sp | grep xorps | count 2
Dan Gohman11821702007-07-27 17:16:43 +00003
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
8define void @foo(float* %p, float* %q, float %s, float %y) {
Dan Gohman7ce405e2009-06-04 22:49:04 +00009 %ss = fsub float -0.0, %s
10 %yy = fsub float -0.0, %y
Dan Gohman11821702007-07-27 17:16:43 +000011 store float %ss, float* %p
12 store float %yy, float* %q
13 ret void
14}