mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
e2e776f769
PR24686 identifies a problem where a relocation expression is invalid when not all of the symbols in the expression can be locally resolved. This causes the compiler to request a PC-relative half16ds relocation, which is nonsensical for PowerPC. This patch recognizes this situation and ensures we fail the assembly cleanly. Test case provided by Anton Blanchard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251027 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
210 B
ArmAsm
8 lines
210 B
ArmAsm
# RUN: not llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj %s \
|
|
# RUN: 2>&1 | FileCheck %s
|
|
|
|
_stext:
|
|
ld %r5, p_end - _stext(%r5)
|
|
|
|
# CHECK: LLVM ERROR: Invalid PC-relative half16ds relocation
|