[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / mips-call16.s
bloba03211a58ff4dc7e3b32b75e140b8143876d49dd
1 # REQUIRES: mips
2 # Check R_MIPS_CALL16 relocation calculation.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: ld.lld %t.o -shared -o %t.so
6 # RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck %s
7 # RUN: llvm-readelf -A --symbols %t.so | FileCheck -check-prefix=GOT %s
9 .text
10 .globl __start
11 __start:
12 lw $t0,%call16(g1)($gp)
14 .globl g1
15 .type g1,@function
16 g1:
17 nop
19 # CHECK: Disassembly of section .text:
20 # CHECK-EMPTY:
21 # CHECK-NEXT: <__start>:
22 # CHECK-NEXT: {{.*}}: lw $8, -32744
24 # GOT: Symbol table '.symtab'
25 # GOT: {{.*}}: [[G1:[0-9a-f]+]] {{.*}} g1
27 # GOT: Primary GOT:
28 # GOT: Global entries:
29 # GOT: {{.*}} -32744(gp) [[G1]] [[G1]] FUNC 7 g1