MIPS: Verify the ISA mode and alignment of branch and jump targets
[external/binutils.git] / ld / testsuite / ld-mips-elf / undefweak-overflow.s
index 2cec4b9..a7a9937 100644 (file)
@@ -21,6 +21,11 @@ start:
        bal     foo
        lui     $4, %gp_rel(foo)
 
+       jal     foo
+       nop
+       j       foo
+       nop
+
        .set mips32r2
        .set micromips
 micro:
@@ -30,3 +35,18 @@ micro:
        nop
        b       foo
        nop
+       bal     foo
+       nop
+
+       jal     foo
+       nop
+       j       foo
+       nop
+
+       .set nomicromips
+       .set mips16
+mips16:
+       b       foo
+
+       jal     foo
+       nop