PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr17692.c
blob476d8e3de3f5bb9db64c13ca5c58dd85c48e4e7d
1 /* { dg-do compile } */
2 /* { dg-options "-O -mfpmath=sse -msse2" } */
4 /* The fact that t1 and t2 are uninitialized is critical. With them
5 uninitialized, the register allocator is free to put them in the same
6 hard register, which results in
8 xmm0 = xmm0 >= xmm0 ? xmm0 : xmm0
10 Which is of course a nop, but one for which we would ICE splitting the
11 pattern. */
13 double out;
15 static void foo(void)
17 double t1, t2, t3, t4;
19 t4 = t1 >= t2 ? t1 : t2;
20 t4 = t4 >= t3 ? t4 : t3;
21 out = t4;