brintos

brintos / llvm-project-archived public Read only

0
0
Text · 414 B · ee5208b Raw
18 lines · plain
1; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s2 3; Checks that a global symbol with the address of another4; symbol generates a R_AVR_16_PM relocation, as the symbol5; will always be in program memory.6 7; CHECK: RELOCATION RECORDS FOR [.text]:8; CHECK-NEXT: OFFSET   TYPE        VALUE9; CHECK-NEXT: 00000002 R_AVR_16_PM .text10 11foo:12	ret13 14.globl	ptr15ptr:16	.short gs(foo)17 18