X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fmips%2Felf-rel13-mips16.s;fp=gas%2Ftestsuite%2Fgas%2Fmips%2Felf-rel13-mips16.s;h=2983f0e2f04f6c245219247fb0b72960e21db399;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gas/testsuite/gas/mips/elf-rel13-mips16.s b/gas/testsuite/gas/mips/elf-rel13-mips16.s new file mode 100644 index 0000000..2983f0e --- /dev/null +++ b/gas/testsuite/gas/mips/elf-rel13-mips16.s @@ -0,0 +1,24 @@ + .set mips16 + .ent foo +foo: + move $2,$28 + lw $4,%got(l1)($2) + lw $4,%got(l2)($2) + lw $4,%got(l3)($2) + lw $4,%got(l3)($2) + lw $4,%got(l1+0x400)($2) + addiu $4,%lo(l1) + addiu $4,%lo(l1+0x400) + addiu $4,%lo(l3) + addiu $4,%lo(l2) + .align 5 + .end foo + + .data +l1: .word 1 + + .lcomm l2, 4 + + .rdata + .word 1 +l3: .word 2