Commit | Line | Data |
---|---|---|
861fb55a DJ |
1 | .abicalls |
2 | .set noreorder | |
3 | .set nomips16 | |
4 | .global foo | |
5 | .ent foo | |
6 | foo: | |
7 | .cpload $25 | |
8 | lw $25,%call16(foo)($28) | |
9 | lw $2,%got(data)($28) | |
10 | jr $25 | |
11 | addiu $2,$2,%lo(data) | |
12 | .end foo | |
13 | ||
14 | .set mips16 | |
15 | .global bar | |
16 | .ent bar | |
17 | bar: | |
18 | li $2,%hi(_gp_disp) | |
19 | addiu $2,$pc,%lo(_gp_disp) | |
20 | sll $2,16 | |
21 | addu $2,$2,$3 | |
22 | lw $3,%call16(ext)($2) | |
23 | move $28,$2 | |
24 | jr $3 | |
25 | move $25,$3 | |
26 | .end bar | |
27 | ||
28 | .data | |
29 | data: .word 0x12345678 |