mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
043d1a96c9
@ABS8 can be applied to symbols which appear as immediate operands to instructions that have a 8-bit immediate form for that operand. It causes the assembler to use the 8-bit form and an 8-bit relocation (e.g. R_386_8 or R_X86_64_8) for the symbol. Differential Revision: https://reviews.llvm.org/D28688 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293667 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
399 B
ArmAsm
9 lines
399 B
ArmAsm
// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | llvm-objdump -d -r - | FileCheck --check-prefix=32 %s
|
|
// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -d -r - | FileCheck --check-prefix=64 %s
|
|
|
|
// 32: 0: 83 ff 00 cmpl $0, %edi
|
|
// 32: 00000002: R_386_8 foo
|
|
// 64: 0: 83 ff 00 cmpl $0, %edi
|
|
// 64: 0000000000000002: R_X86_64_8 foo+0
|
|
cmp $foo@ABS8, %edi
|