mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
3c1b9d53d0
This fixes PR22060. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228565 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
1.1 KiB
ArmAsm
58 lines
1.1 KiB
ArmAsm
// RUN: llvm-mc -filetype=obj -triple i686-pc-mingw32 %s | llvm-readobj -s -sr -sd | FileCheck %s
|
|
|
|
.section baz, "xr"
|
|
.def X
|
|
.scl 2;
|
|
.type 32;
|
|
.endef
|
|
.globl X
|
|
X:
|
|
mov Y-X+42, %eax
|
|
retl
|
|
|
|
.def Y
|
|
.scl 2;
|
|
.type 32;
|
|
.endef
|
|
.globl Y
|
|
Y:
|
|
retl
|
|
|
|
.def _foobar;
|
|
.scl 2;
|
|
.type 32;
|
|
.endef
|
|
.text
|
|
.long 0
|
|
.globl _foobar
|
|
.align 16, 0x90
|
|
_foobar: # @foobar
|
|
# BB#0:
|
|
ret
|
|
|
|
.data
|
|
.globl _rust_crate # @rust_crate
|
|
.align 4
|
|
_rust_crate:
|
|
.long 0
|
|
.long _foobar
|
|
.long _foobar-_rust_crate
|
|
.long _foobar-_rust_crate
|
|
|
|
// CHECK: Name: .data
|
|
// CHECK: Relocations [
|
|
// CHECK-NEXT: 0x4 IMAGE_REL_I386_DIR32 _foobar
|
|
// CHECK-NEXT: 0x8 IMAGE_REL_I386_REL32 .text
|
|
// CHECK-NEXT: 0xC IMAGE_REL_I386_REL32 .text
|
|
// CHECK-NEXT: ]
|
|
// CHECK: SectionData (
|
|
// CHECK-NEXT: 0000: 00000000 00000000 1C000000 20000000
|
|
// CHECK-NEXT: )
|
|
|
|
// CHECK: Name: baz
|
|
// CHECK: Relocations [
|
|
// CHECK-NEXT: ]
|
|
// CHECK: SectionData (
|
|
// CHECK-NEXT: 0000: A1300000 00C3C3
|
|
// CHECK-NEXT: )
|