mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 21:33:25 +00:00

This patch allows symbols appended with @plt to parse and assemble with the R_RISCV_CALL_PLT relocation. Differential Revision: https://reviews.llvm.org/D55335 Patch by Lewis Revill. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357470 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
419 B
ArmAsm
8 lines
419 B
ArmAsm
# RUN: not llvm-mc -triple=riscv32 < %s 2>&1 | FileCheck %s
|
|
# RUN: not llvm-mc -triple=riscv64 < %s 2>&1 | FileCheck %s
|
|
|
|
# Non bare symbols must be rejected
|
|
lla a2, %lo(a_symbol) # CHECK: :[[@LINE]]:9: error: operand must be a bare symbol name
|
|
lla a2, %hi(a_symbol) # CHECK: :[[@LINE]]:9: error: operand must be a bare symbol name
|
|
lla a2, foo@plt # CHECK: :[[@LINE]]:17: error: '@plt' operand not valid for instruction
|