mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
aa7dd32bfa
@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 llvm-svn: 293667
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
|