2019-10-07 22:01:22 +08:00
|
|
|
# RUN: llvm-mc -triple=mips -mcpu=mips32 -filetype=obj < %s \
|
2020-05-13 13:14:28 +08:00
|
|
|
# RUN: | llvm-objdump -d - | FileCheck %s
|
2019-10-07 22:01:22 +08:00
|
|
|
# RUN: llvm-mc -triple=mips64 -mcpu=mips64 -filetype=obj < %s \
|
2020-05-13 13:14:28 +08:00
|
|
|
# RUN: | llvm-objdump -d - | FileCheck %s
|
2019-10-07 22:01:22 +08:00
|
|
|
|
|
|
|
.set noreorder
|
|
|
|
|
|
|
|
# Force us into the second 256 MB region with a non-zero instruction index
|
|
|
|
.org 256*1024*1024 + 12
|
2020-03-06 06:18:38 +08:00
|
|
|
# CHECK-LABEL: 1000000c <foo>:
|
2019-10-07 22:01:22 +08:00
|
|
|
# CHECK-NEXT: 1000000c: 08 00 00 03 j 12 <foo>
|
|
|
|
# CHECK-NEXT: 10000010: 0c 00 00 04 jal 16 <foo+0x4>
|
|
|
|
# CHECK-NEXT: 10000014: 74 00 00 05 jalx 20 <foo+0x8>
|
|
|
|
foo:
|
|
|
|
j 12
|
|
|
|
jal 16
|
|
|
|
jalx 20
|