mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-11 23:05:31 +00:00
f89da7210b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179361 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.2 KiB
ArmAsm
39 lines
1.2 KiB
ArmAsm
@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck -check-prefix=ASM %s
|
|
@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \
|
|
@ RUN: llvm-readobj -s -sd -sr | FileCheck -check-prefix=OBJ %s
|
|
.syntax unified
|
|
.text
|
|
.globl barf
|
|
.align 2
|
|
.type barf,%function
|
|
barf: @ @barf
|
|
@ BB#0: @ %entry
|
|
movw r0, :lower16:GOT-(.LPC0_2+8)
|
|
movt r0, :upper16:GOT-(.LPC0_2+8)
|
|
.LPC0_2:
|
|
@ ASM: movw r0, :lower16:(GOT-(.LPC0_2+8))
|
|
@ ASM-NEXT: movt r0, :upper16:(GOT-(.LPC0_2+8))
|
|
|
|
@@ make sure that the text section fixups are sane too
|
|
@ OBJ: Section {
|
|
@ OBJ: Name: .text
|
|
@ OBJ-NEXT: Type: SHT_PROGBITS
|
|
@ OBJ-NEXT: Flags [ (0x6)
|
|
@ OBJ-NEXT: SHF_ALLOC
|
|
@ OBJ-NEXT: SHF_EXECINSTR
|
|
@ OBJ-NEXT: ]
|
|
@ OBJ-NEXT: Address: 0x0
|
|
@ OBJ-NEXT: Offset: 0x34
|
|
@ OBJ-NEXT: Size: 8
|
|
@ OBJ-NEXT: Link: 0
|
|
@ OBJ-NEXT: Info: 0
|
|
@ OBJ-NEXT: AddressAlignment: 4
|
|
@ OBJ-NEXT: EntrySize: 0
|
|
@ OBJ-NEXT: Relocations [
|
|
@ OBJ-NEXT: 0x0 R_ARM_MOVW_PREL_NC
|
|
@ OBJ-NEXT: 0x4 R_ARM_MOVT_PREL
|
|
@ OBJ-NEXT: ]
|
|
@ OBJ-NEXT: SectionData (
|
|
@ OBJ-NEXT: 0000: F00F0FE3 F40F4FE3
|
|
@ OBJ-NEXT: )
|