mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
a7c5316e2d
This has been broken since r320009. llvm-svn: 320348
17 lines
378 B
ArmAsm
17 lines
378 B
ArmAsm
; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s
|
|
|
|
; Checks that a global symbol with the address of another
|
|
; symbol generates a R_AVR_16_PM relocation, as the symbol
|
|
; will always be in program memory.
|
|
|
|
; CHECK: RELOCATION RECORDS FOR [.rela.text]:
|
|
; CHECK-NEXT: 00000002 R_AVR_16_PM .text
|
|
|
|
foo:
|
|
ret
|
|
|
|
.globl ptr
|
|
ptr:
|
|
.short gs(foo)
|
|
|