PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr71245-2.c
blob65c139849d539a0448124207a683c4493a9bee14
1 /* PR target/71245 */
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2 -march=pentium -msse -mno-sse2 -mfpmath=387" } */
5 typedef union
7 unsigned long long ll;
8 double d;
9 } u_t;
11 u_t d = { .d = 5.0 };
13 void foo_d (void)
15 u_t tmp;
17 tmp.ll = __atomic_load_n (&d.ll, __ATOMIC_SEQ_CST);
18 tmp.d += 1.0;
19 __atomic_store_n (&d.ll, tmp.ll, __ATOMIC_SEQ_CST);
22 /* { dg-final { scan-assembler-not "movlps" } } */