2018-06-14 02:45:25 +08:00
|
|
|
# REQUIRES: hexagon
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %S/Inputs/hexagon.s -o %t2
|
|
|
|
# RUN: ld.lld %t2 %t -o %t3
|
|
|
|
# RUN: llvm-objdump -d %t3 | FileCheck %s
|
|
|
|
|
2018-07-29 19:59:38 +08:00
|
|
|
# Note: 69632 == 0x11000
|
|
|
|
# R_HEX_32_6_X
|
|
|
|
# R_HEX_12_X
|
|
|
|
if (p0) r0 = ##_start
|
|
|
|
# CHECK: immext(#69632)
|
|
|
|
# CHECK: if (p0) r0 = ##69632
|
|
|
|
|
2018-07-20 04:27:43 +08:00
|
|
|
# R_HEX_B15_PCREL
|
|
|
|
if (p0) jump:nt #_start
|
|
|
|
# CHECK: if (p0) jump:nt 0x11000
|
|
|
|
|
2018-07-24 23:08:13 +08:00
|
|
|
# R_HEX_B32_PCREL_X
|
|
|
|
# R_HEX_B15_PCREL_X
|
|
|
|
if (p0) jump:nt ##_start
|
|
|
|
# CHECK: if (p0) jump:nt 0x11000
|
|
|
|
|
2018-06-14 02:45:25 +08:00
|
|
|
# R_HEX_B22_PCREL
|
|
|
|
call #_start
|
|
|
|
# CHECK: call 0x11000
|
2018-07-20 03:10:56 +08:00
|
|
|
|
|
|
|
# R_HEX_B32_PCREL_X
|
|
|
|
# R_HEX_B22_PCREL_X
|
|
|
|
call ##_start
|
|
|
|
# CHECK: immext(#4294967232)
|
|
|
|
# CHECK: call 0x11000
|