1 ## Test that llvm-readobj/llvm-readelf shows proper relocation type
2 ## names and values for lanai target.
4 # RUN: yaml2obj %s -o %t-lanai.o
5 # RUN: llvm-readobj -r --expand-relocs %t-lanai.o | FileCheck %s
7 # CHECK: Type: R_LANAI_NONE (0)
8 # CHECK: Type: R_LANAI_21 (1)
9 # CHECK: Type: R_LANAI_21_F (2)
10 # CHECK: Type: R_LANAI_25 (3)
11 # CHECK: Type: R_LANAI_32 (4)
12 # CHECK: Type: R_LANAI_HI16 (5)
13 # CHECK: Type: R_LANAI_LO16 (6)
24 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
25 AddressAlign: 0x0000000000000004
30 AddressAlign: 0x0000000000000004
31 EntSize: 0x000000000000000C
34 - Offset: 0x0000000000000000
36 - Offset: 0x0000000000000004
38 - Offset: 0x0000000000000008
40 - Offset: 0x000000000000000C
42 - Offset: 0x0000000000000010
44 - Offset: 0x0000000000000014
46 - Offset: 0x0000000000000018