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