1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_pcrel } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mpcrel-opt" } */
5 #define TYPE vector double
8 /* Test whether we get the right number of PCREL_OPT optimizations for
15 ext
[0] = a
; /* PCREL_OPT relocation. */
21 ext
[2] = a
; /* PCREL_OPT relocation. */
27 ext
[LARGE
] = a
; /* No PCREL_OPT (store is prefixed). */
31 store_variable (TYPE a
, unsigned long n
)
33 ext
[n
] = a
; /* No PCREL_OPT (store is indexed). */
36 /* { dg-final { scan-assembler-times "R_PPC64_PCREL_OPT" 2 } } */