1 /* PR target/71245 */ 2 /* { dg-do compile { target ia32 } } */ 3 /* { dg-options "-O2 -march=pentium -mno-sse -mfpmath=387" } */ 4 5 typedef union 6 { 7 unsigned long long ll; 8 double d; 9 } u_t; 10 11 u_t d = { .d = 5.0 }; 12 foo_d(void)13void foo_d (void) 14 { 15 u_t tmp; 16 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); 20 } 21 22 /* { dg-final { scan-assembler-not "(fistp|fild)" } } */ 23