1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_pcrel } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mpcrel-opt" } */
5 #define TYPE unsigned int
7 /* Test whether using an external variable twice (doing an increment) prevents
8 the PCREL_OPT optimization. */
14 ext
++; /* No PCREL_OPT (uses address twice). */
17 /* { dg-final { scan-assembler-not "R_PPC64_PCREL_OPT" } } */