diff options
Diffstat (limited to 'ld/testsuite/ld-frv/fdpic8.s')
-rw-r--r-- | ld/testsuite/ld-frv/fdpic8.s | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ld/testsuite/ld-frv/fdpic8.s b/ld/testsuite/ld-frv/fdpic8.s new file mode 100644 index 0000000000..037250fae8 --- /dev/null +++ b/ld/testsuite/ld-frv/fdpic8.s @@ -0,0 +1,81 @@ + .text + .weak _start +_start: + .global F8 + .type F8,@function +F8: + call GF0+4 + .global GF0 + .global GF1 + .global GF2 + .global GF3 + .global GF4 + .global GF5 + .global GF6 + .global GF7 + .global GF8 + .global GF9 + .global GFa + .global GFb + .global GFc +GF0: +GF1: +GF2: +GF3: +GF4: +GF5: +GF6: +GF7: +GF8: +GF9: +GFa: +GFb: +GFc: + addi gr15, #got12(GF1+4), gr0 + + setlos #gotlo(GF2+4), gr0 + + setlo #gotlo(GF3+4), gr0 + sethi #gothi(GF3+4), gr0 + + addi gr15, #gotfuncdesc12(GF4+4), gr0 + + setlos #gotfuncdesclo(GF5+4), gr0 + + setlo #gotfuncdesclo(GF6+4), gr0 + sethi #gotfuncdeschi(GF6+4), gr0 + + addi gr15, #gotofffuncdesc12(GF7+4), gr0 + + setlos #gotofffuncdesclo(GF8+4), gr0 + + setlo #gotofffuncdesclo(GF9+4), gr0 + sethi #gotofffuncdeschi(GF9+4), gr0 + + addi gr15, #gotoff12(GD1+4), gr0 + + setlos #gotofflo(GD2+4), gr0 + + setlo #gotofflo(GD3+4), gr0 + sethi #gotoffhi(GD3+4), gr0 + + setlo #gotlo(GD4+4), gr0 + sethi #gothi(GD4+4), gr0 + + .data + .global D8 +D8: + .word GD0+4 + + .global GD0 + .global GD1 + .global GD2 + .global GD3 + .global GD4 +GD0: +GD1: +GD2: +GD3: +GD4: + .picptr funcdesc(GFb+4) + .word GFb+4 |