|
5 | 5 | ; RUN: llc -mattr=+egpr %s -mtriple=x86_64 -filetype=obj -o %t.o -x86-enable-apx-for-relocation=true
|
6 | 6 | ; RUN: llvm-objdump --no-print-imm-hex -dr %t.o | FileCheck %s --check-prefix=GOTTPOFF_APXRELAX
|
7 | 7 | ; RUN: echo '.tbss; .globl b,c,d,e,f,g,h,i,j; b: .zero 4;c: .zero 4;d: .zero 4;e: .zero 4;f: .zero 4;g: .zero 4;h: .zero 4;i: .zero 4;j: .zero 4' | llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o
|
8 |
| -; RUN: ld.lld %t.o %t1.o -o %t.so |
9 |
| -; RUN: llvm-objdump --no-print-imm-hex -dr %t.so | FileCheck %s --check-prefix=GOTTPOFF_LD_APXRELAX |
10 | 8 |
|
11 | 9 | ; RUN: llc -mattr=+egpr %s -mtriple=x86_64 -filetype=obj -o %t.o
|
12 | 10 | ; RUN: llvm-objdump --no-print-imm-hex -dr %t.o | FileCheck %s --check-prefix=GOTTPOFF_NOAPXRELAX
|
13 | 11 | ; RUN: echo '.tbss; .globl b,c,d,e,f,g,h,i,j; b: .zero 4;c: .zero 4;d: .zero 4;e: .zero 4;f: .zero 4;g: .zero 4;h: .zero 4;i: .zero 4;j: .zero 4' | llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o
|
14 |
| -; RUN: ld.lld %t.o %t1.o -o %t.so |
15 |
| -; RUN: llvm-objdump --no-print-imm-hex -dr %t.so | FileCheck %s --check-prefix=GOTTPOFF_LD_NOAPXRELAX |
16 | 12 |
|
17 | 13 |
|
18 | 14 | ; TLSDESC: d5 18 89 c0 movq %rax, %r16
|
|
21 | 17 |
|
22 | 18 | ; GOTTPOFF_APXRELAX: d5 48 8b 05 00 00 00 00 movq (%rip), %r16
|
23 | 19 | ; GOTTPOFF_APXRELAX-NEXT: R_X86_64_CODE_4_GOTTPOFF j-0x4
|
24 |
| -; GOTTPOFF_LD_APXRELAX: d5 18 c7 c0 fc ff ff ff movq $-4, %r16 |
25 | 20 |
|
26 | 21 | ; GOTTPOFF_NOAPXRELAX: 48 8b 1d 00 00 00 00 movq (%rip), %rbx
|
27 | 22 | ; GOTTPOFF_NOAPXRELAX-NEXT: R_X86_64_GOTTPOFF j-0x4
|
28 |
| -; GOTTPOFF_LD_NOAPXRELAX: 48 c7 c3 fc ff ff ff movq $-4, %rbx |
29 | 23 |
|
30 | 24 | @a = thread_local global i32 0, align 4
|
31 | 25 | @b = external thread_local global i32, align 4
|
|
0 commit comments