Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/mpc860_no_lwsync.c

raw
1 /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
2 /* { dg-options "-mcpu=860 -O2" } */
3
4 /* Check that we do not emit lwsync when targeting MPC8xx (MPCCORE),
5 since the MPC8xx core does not support and faults on this instruction. */
6
7 void
8 store_release (int *ptr, int val)
9 {
10 __atomic_store_n (ptr, val, __ATOMIC_RELEASE);
11 }
12
13 /* { dg-final { scan-assembler-not "\mlwsync\M" } } */