mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
f068304b1f
We still have the templated X86 JIT emitter, *and* the almost-copy in X86InstrInfo for getting instruction sizes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96059 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
964 B
ArmAsm
27 lines
964 B
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
|
|
|
|
movl foo(%rip), %eax
|
|
// CHECK: movl foo(%rip), %eax
|
|
// CHECK: encoding: [0x8b,0x05,A,A,A,A]
|
|
// CHECK: fixup A - offset: 2, value: foo, kind: reloc_riprel_4byte
|
|
|
|
movb $12, foo(%rip)
|
|
// CHECK: movb $12, foo(%rip)
|
|
// CHECK: encoding: [0xc6,0x05,A,A,A,A,0x0c]
|
|
// CHECK: fixup A - offset: 2, value: foo-1, kind: reloc_riprel_4byte
|
|
|
|
movw $12, foo(%rip)
|
|
// CHECK: movw $12, foo(%rip)
|
|
// CHECK: encoding: [0x66,0xc7,0x05,A,A,A,A,0x0c,0x00]
|
|
// CHECK: fixup A - offset: 3, value: foo-2, kind: reloc_riprel_4byte
|
|
|
|
movl $12, foo(%rip)
|
|
// CHECK: movl $12, foo(%rip)
|
|
// CHECK: encoding: [0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00]
|
|
// CHECK: fixup A - offset: 2, value: foo-4, kind: reloc_riprel_4byte
|
|
|
|
movq $12, foo(%rip)
|
|
// CHECK: movq $12, foo(%rip)
|
|
// CHECK: encoding: [0x48,0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00]
|
|
// CHECK: fixup A - offset: 3, value: foo-4, kind: reloc_riprel_4byte
|