c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pcrel-opt-inc-di.c
blob6272f5c72c304e8882d4df1e98304932e22c647b
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. */
9 extern TYPE ext;
11 void
12 inc (void)
14 ext++; /* No PCREL_OPT (uses address twice). */
17 /* { dg-final { scan-assembler-not "R_PPC64_PCREL_OPT" } } */