1# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \ 2# RUN: | llvm-objdump -d - | FileCheck %s 3 4# CHECK: <foo>: 5# CHECK-NEXT: 0: 0c 00 00 02 jal 8 <loc1> 6# CHECK-NEXT: 4: 00 00 00 00 nop 7# 8# CHECK: <loc1>: 9# CHECK-NEXT: 8: 0c 00 00 06 jal 24 <loc3> 10# CHECK-NEXT: c: 00 00 00 00 nop 11# 12# CHECK: <loc2>: 13# CHECK-NEXT: 10: 10 00 ff fd b -8 <loc1> 14# CHECK-NEXT: 14: 00 00 00 00 nop 15# 16# CHECK: <loc3>: 17# CHECK-NEXT: 18: 10 43 ff fd beq $2, $3, -8 <loc2> 18# CHECK-NEXT: 1c: 00 00 00 00 nop 19# CHECK-NEXT: 20: 04 11 ff f9 bal -24 <loc1> 20# CHECK-NEXT: 24: 00 00 00 00 nop 21# CHECK-NEXT: 28: 08 00 00 04 j 16 <loc2> 22 23 .text 24 .globl foo 25 .ent foo 26foo: 27 jal loc1 28loc1: 29 jal loc3 30loc2: 31 b loc1 32loc3: 33 beq $2, $3, loc2 34 bal loc1 35 j loc2 36 .end foo 37