forked from OSchip/llvm-project
20 lines
478 B
ArmAsm
20 lines
478 B
ArmAsm
# 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
|
|
|
|
# R_HEX_B15_PCREL
|
|
if (p0) jump:nt #_start
|
|
# CHECK: if (p0) jump:nt 0x11000
|
|
|
|
# R_HEX_B22_PCREL
|
|
call #_start
|
|
# CHECK: call 0x11000
|
|
|
|
# R_HEX_B32_PCREL_X
|
|
# R_HEX_B22_PCREL_X
|
|
call ##_start
|
|
# CHECK: immext(#4294967232)
|
|
# CHECK: call 0x11000
|