gcc/testsuite/gcc.target/mips/xgot-n32-avoid-gp.c
raw| 1 | /* Check if we skip store and load gp if there is no stub function call. */ |
| 2 | /* { dg-options "-mips64r2 -mxgot -mabi=n32 -fPIC" } */ |
| 3 | |
| 4 | extern int a; |
| 5 | int |
| 6 | foo () |
| 7 | { |
| 8 | return a; |
| 9 | } |
| 10 | /* { dg-final { scan-assembler-not "\tsd\t\\\$28," } } */ |
| 11 | /* { dg-final { scan-assembler-not "\tld\t\\\$28," } } */ |