[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / llvm / test / MC / X86 / reloc-directive-elf-64.s
blobe0a1a5730597f01383fa21208c6c3ffdb5ddbc5e
1 # RUN: llvm-mc -triple=x86_64-pc-linux-musl %s | FileCheck --check-prefix=PRINT %s
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-musl %s -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # PRINT: .reloc 2, R_X86_64_NONE, .data
7 # PRINT-NEXT: .reloc 1, R_X86_64_NONE, foo+4
8 # PRINT-NEXT: .reloc 0, R_X86_64_NONE, 8
9 # PRINT-NEXT: .reloc 0, R_X86_64_64, .data+2
10 # PRINT-NEXT: .reloc 0, R_X86_64_GOTPCRELX, foo+3
11 # PRINT-NEXT: .reloc 0, R_X86_64_REX_GOTPCRELX, 5
12 # PRINT-NEXT: .reloc 0, R_X86_64_CODE_4_GOTPCRELX, 7
13 # PRINT: .reloc 0, BFD_RELOC_NONE, 9
14 # PRINT-NEXT: .reloc 0, BFD_RELOC_8, 9
15 # PRINT-NEXT: .reloc 0, BFD_RELOC_16, 9
16 # PRINT-NEXT: .reloc 0, BFD_RELOC_32, 9
17 # PRINT-NEXT: .reloc 0, BFD_RELOC_64, 9
19 # CHECK: 0x2 R_X86_64_NONE .data 0x0
20 # CHECK-NEXT: 0x1 R_X86_64_NONE foo 0x4
21 # CHECK-NEXT: 0x0 R_X86_64_NONE - 0x8
22 # CHECK-NEXT: 0x0 R_X86_64_64 .data 0x2
23 # CHECK-NEXT: 0x0 R_X86_64_GOTPCRELX foo 0x3
24 # CHECK-NEXT: 0x0 R_X86_64_REX_GOTPCRELX - 0x5
25 # CHECK-NEXT: 0x0 R_X86_64_CODE_4_GOTPCRELX - 0x7
26 # CHECK-NEXT: 0x0 R_X86_64_NONE - 0x9
27 # CHECK-NEXT: 0x0 R_X86_64_8 - 0x9
28 # CHECK-NEXT: 0x0 R_X86_64_16 - 0x9
29 # CHECK-NEXT: 0x0 R_X86_64_32 - 0x9
30 # CHECK-NEXT: 0x0 R_X86_64_64 - 0x9
32 .text
33 ret
34 nop
35 nop
36 .reloc 2, R_X86_64_NONE, .data
37 .reloc 1, R_X86_64_NONE, foo+4
38 .reloc 0, R_X86_64_NONE, 8
39 .reloc 0, R_X86_64_64, .data+2
40 .reloc 0, R_X86_64_GOTPCRELX, foo+3
41 .reloc 0, R_X86_64_REX_GOTPCRELX, 5
42 .reloc 0, R_X86_64_CODE_4_GOTPCRELX, 7
44 .reloc 0, BFD_RELOC_NONE, 9
45 .reloc 0, BFD_RELOC_8, 9
46 .reloc 0, BFD_RELOC_16, 9
47 .reloc 0, BFD_RELOC_32, 9
48 .reloc 0, BFD_RELOC_64, 9
50 .data
51 .globl foo
52 foo:
53 .word 0
54 .word 0