MIPS: Verify the ISA mode and alignment of branch and jump targets
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mips-elf / undefweak-overflow.s
index 2cec4b9b629b3f0365d6f2e21ac7a7b535b5c7eb..a7a99371b4d6d3087a10980e1d9767c0fe5ed2cb 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
This page took 0.025285 seconds and 4 git commands to generate.