1 /* { dg-do compile } */
2 /* { dg-options "-O -mgpopt=none" } */
4 extern int a
__attribute__ ((section (".sdata")));
5 static volatile int b
__attribute__ ((section (".sdata"))) = 1;
6 extern int c
__attribute__ ((section (".data")));
7 static volatile int d
__attribute__ ((section (".data"))) = 2;
10 static volatile int f
= 3;
12 volatile int g
__attribute__ ((weak
)) = 4;
16 static int j
[100] __attribute__ ((section (".sdata")));
18 typedef int (*ftype
) (int);
21 extern int bar (int, int*, int*, int*, ftype
);
25 return bar (a
+ b
+ c
+ d
+ e
+ f
+ g
, h
, i
, j
, foo
);
28 /* { dg-final { scan-assembler-not "%gprel\\(a\\)" } } */
29 /* { dg-final { scan-assembler-not "%gprel\\(b\\)" } } */
30 /* { dg-final { scan-assembler-not "%gprel\\(c\\)" } } */
31 /* { dg-final { scan-assembler-not "%gprel\\(d\\)" } } */
32 /* { dg-final { scan-assembler-not "%gprel\\(e\\)" } } */
33 /* { dg-final { scan-assembler-not "%gprel\\(f\\)" } } */
34 /* { dg-final { scan-assembler-not "%gprel\\(g\\)" } } */
35 /* { dg-final { scan-assembler-not "%gprel\\(h\\)" } } */
36 /* { dg-final { scan-assembler-not "%gprel\\(i\\)" } } */
37 /* { dg-final { scan-assembler-not "%gprel\\(j\\)" } } */
38 /* { dg-final { scan-assembler-not "%gprel\\(foo\\)" } } */