blob: 1b3273374c67fde855655275dcca23910d3ec7cd [file] [log] [blame]
Sid Manning95b0c2e2018-06-13 18:45:251# 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
Sid Manningbff67192018-07-29 11:59:387# Note: 69632 == 0x11000
8# R_HEX_32_6_X
9# R_HEX_12_X
10if (p0) r0 = ##_start
11# CHECK: immext(#69632)
12# CHECK: if (p0) r0 = ##69632
13
Sid Manning690b5442018-07-19 20:27:4314# R_HEX_B15_PCREL
15if (p0) jump:nt #_start
16# CHECK: if (p0) jump:nt 0x11000
17
Sid Manning32417242018-07-24 15:08:1318# R_HEX_B32_PCREL_X
19# R_HEX_B15_PCREL_X
20if (p0) jump:nt ##_start
21# CHECK: if (p0) jump:nt 0x11000
22
Sid Manning95b0c2e2018-06-13 18:45:2523# R_HEX_B22_PCREL
24call #_start
25# CHECK: call 0x11000
Sid Manningbdd71f32018-07-19 19:10:5626
27# R_HEX_B32_PCREL_X
28# R_HEX_B22_PCREL_X
29call ##_start
30# CHECK: immext(#4294967232)
31# CHECK: call 0x11000