llvm-project/llvm/test/MC/PowerPC/relocation-specifier-err.s
Fangrui Song 7cb66ff464 [PowerPC] Use reportError
Report a proper error and fix de1dc9c98f9ce74d38aceb44e00d258370d1bb34
2025-04-06 00:03:48 -07:00

18 lines
563 B
ArmAsm

# RUN: not llvm-mc -triple powerpc64 --filetype=obj %s -o %t 2>&1 | FileCheck %s
# RUN: not llvm-mc -triple powerpc64le --filetype=obj %s -o %t 2>&1 | FileCheck %s
# CHECK: [[#@LINE+1]]:4: error: unsupported relocation type
bl foo@toc
# CHECK: [[#@LINE+1]]:12: error: unsupported relocation type
addi 3, 3, foo@plt
# CHECK: [[#@LINE+1]]:14: error: unsupported relocation type
paddi 3, 13, foo@toc, 0
# CHECK: [[#@LINE+1]]:15: error: unsupported relocation type
ld %r5, p_end - .(%r5)
# CHECK: [[#@LINE+1]]:7: error: unsupported relocation type
.quad foo@toc