Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / MC / AVR / symbol_relocation.s
blob639e01dfdfbb87487d26a0252afb22af28cc05e8
1 ; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s
3 ; Checks that a global symbol with the address of another
4 ; symbol generates a R_AVR_16_PM relocation, as the symbol
5 ; will always be in program memory.
7 ; CHECK: RELOCATION RECORDS FOR [.rela.text]:
8 ; CHECK-NEXT: 00000002 R_AVR_16_PM .text
10 foo:
11 ret
13 .globl ptr
14 ptr:
15 .short gs(foo)