2015-08-28 15:32:19 +00:00
|
|
|
# relocs against undefined weak symbols should not be treated as
|
|
|
|
# overflowing
|
|
|
|
|
|
|
|
.module mips64r6
|
|
|
|
.globl start
|
|
|
|
.weak foo
|
|
|
|
start:
|
|
|
|
.set noreorder
|
|
|
|
.set mips64r6
|
|
|
|
beqzc $2, foo
|
|
|
|
nop
|
|
|
|
bnezc $2, foo
|
|
|
|
lwpc $2, foo
|
|
|
|
ldpc $2, foo
|
|
|
|
bc foo
|
|
|
|
auipc $4, %pcrel_hi(foo)
|
|
|
|
addiu $4, $4, %pcrel_lo(foo+4)
|
|
|
|
|
|
|
|
b foo
|
|
|
|
nop
|
|
|
|
bal foo
|
|
|
|
lui $4, %gp_rel(foo)
|
|
|
|
|
2017-04-10 11:32:00 +00:00
|
|
|
jal foo
|
|
|
|
nop
|
|
|
|
j foo
|
|
|
|
nop
|
|
|
|
|
2015-08-28 15:32:19 +00:00
|
|
|
.set mips32r2
|
|
|
|
.set micromips
|
|
|
|
micro:
|
|
|
|
beqz16 $4, foo
|
|
|
|
nop
|
|
|
|
b16 foo
|
|
|
|
nop
|
|
|
|
b foo
|
|
|
|
nop
|
2017-04-10 11:32:00 +00:00
|
|
|
bal foo
|
|
|
|
nop
|
|
|
|
|
|
|
|
jal foo
|
|
|
|
nop
|
|
|
|
j foo
|
|
|
|
nop
|
|
|
|
|
|
|
|
.set nomicromips
|
|
|
|
.set mips16
|
|
|
|
mips16:
|
|
|
|
b foo
|
|
|
|
|
|
|
|
jal foo
|
|
|
|
nop
|