X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-mips-elf%2Fundefweak-overflow.s;h=2cec4b9b629b3f0365d6f2e21ac7a7b535b5c7eb;hb=6e8ec71244d3bb6a1223d07965066b7b9836ab7d;hp=525f11b14e6875304381d3b2851492f5b4cb842a;hpb=bb7e3f4d51bf73843de0572af17ee1b6cf1167db;p=external%2Fbinutils.git diff --git a/ld/testsuite/ld-mips-elf/undefweak-overflow.s b/ld/testsuite/ld-mips-elf/undefweak-overflow.s index 525f11b..2cec4b9 100644 --- a/ld/testsuite/ld-mips-elf/undefweak-overflow.s +++ b/ld/testsuite/ld-mips-elf/undefweak-overflow.s @@ -1,25 +1,32 @@ # 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 - lui $4, %pcrel_hi(foo) - addiu $4, $4, %pcrel_lo(foo) + auipc $4, %pcrel_hi(foo) + addiu $4, $4, %pcrel_lo(foo+4) - .set mips32r2 - b foo - bal foo - lui $4, %gp_rel(foo) + b foo + nop + bal foo + lui $4, %gp_rel(foo) + .set mips32r2 .set micromips - beqz16 $4, foo - b16 foo - b foo +micro: + beqz16 $4, foo + nop + b16 foo + nop + b foo + nop