PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr71245-1.c
blobbe0b7602a8cffa9bc015986f72246580a13b0106
1 /* PR target/71245 */
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2 -march=pentium -mno-sse -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 "(fistp|fild)" } } */