PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70821.c
blob3b5de2fb1822fe2bc3d3977587c08fc051ebfe4e
1 /* PR target/70821 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os" } */
4 /* { dg-additional-options "-march=i686" { target ia32 } } */
6 void bar (void);
8 void
9 foo (int *p)
11 if (__atomic_sub_fetch (p, 1, __ATOMIC_SEQ_CST))
12 bar ();
15 /* { dg-final { scan-assembler "lock;? dec" } } */
16 /* { dg-final { scan-assembler-not "lock;? xadd" } } */