]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/hexagon.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / hexagon.s
1 # REQUIRES: hexagon
2 # RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t
3 # RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %S/Inputs/hexagon.s -o %t2
4 # RUN: ld.lld %t2 %t  -o %t3
5 # RUN: llvm-objdump -d  %t3 | FileCheck %s
6
7 # R_HEX_B15_PCREL
8 if (p0) jump:nt #_start
9 # CHECK: if (p0) jump:nt 0x11000
10
11 # R_HEX_B32_PCREL_X
12 # R_HEX_B15_PCREL_X
13 if (p0) jump:nt ##_start
14 # CHECK: if (p0) jump:nt 0x11000
15
16 # R_HEX_B22_PCREL
17 call #_start
18 # CHECK: call 0x11000
19
20 # R_HEX_B32_PCREL_X
21 # R_HEX_B22_PCREL_X
22 call ##_start
23 # CHECK: immext(#4294967232)
24 # CHECK: call 0x11000