forked from OSchip/llvm-project
76 lines
1.3 KiB
ArmAsm
76 lines
1.3 KiB
ArmAsm
; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s
|
|
|
|
; CHECK: RELOCATION RECORDS FOR
|
|
|
|
; CHECK-NEXT: R_AVR_LDI SYMBOL+3
|
|
ldi r21, SYMBOL+3
|
|
|
|
; CHECK-NEXT: R_AVR_6_ADIW FOO
|
|
adiw r24, FOO
|
|
|
|
; CHECK-NEXT: R_AVR_16 BAR+2
|
|
lds r8, BAR+2
|
|
|
|
; CHECK-NEXT: R_AVR_PORT5 foo
|
|
sbic foo, 1
|
|
|
|
; CHECK-NEXT: R_AVR_PORT6 Bar+2
|
|
in r30, Bar+2
|
|
|
|
; CHECK-NEXT: R_AVR_CALL foo+3
|
|
call foo+3
|
|
|
|
; CHECK-NEXT: R_AVR_13_PCREL foo-10
|
|
rjmp foo-10
|
|
|
|
; CHECK-NEXT: R_AVR_7_PCREL foo+2
|
|
brcs foo+2
|
|
|
|
; CHECK-NEXT: R_AVR_LO8_LDI bar+3
|
|
ldi r24, lo8(bar+3)
|
|
|
|
; CHECK-NEXT: R_AVR_HI8_LDI abc
|
|
ldi r30, hi8(abc)
|
|
|
|
; CHECK-NEXT: R_AVR_LO8_LDI_NEG abc
|
|
ldi r16, -lo8(abc)
|
|
|
|
; CHECK-NEXT: R_AVR_HI8_LDI_NEG abc
|
|
ldi r16, -hi8(abc)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI foo
|
|
ldi r16, hh8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI_NEG foo
|
|
ldi r16, -hh8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI foo
|
|
ldi r24, hlo8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI_NEG foo
|
|
ldi r24, -hlo8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_MS8_LDI bar
|
|
ldi r24, hhi8(bar)
|
|
|
|
; CHECK-NEXT: R_AVR_MS8_LDI_NEG bar
|
|
ldi r24, -hhi8(bar)
|
|
|
|
; CHECK-NEXT: R_AVR_LO8_LDI_PM foo
|
|
ldi r17, pm_lo8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HI8_LDI_PM bar
|
|
ldi r22, pm_hi8(bar)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI_PM baz
|
|
ldi r25, pm_hh8(baz)
|
|
|
|
; CHECK-NEXT: R_AVR_LO8_LDI_PM_NEG
|
|
ldi r25, -pm_lo8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HI8_LDI_PM_NEG
|
|
ldi r25, -pm_hi8(foo)
|
|
|
|
; CHECK-NEXT: R_AVR_HH8_LDI_PM_NEG
|
|
ldi r25, -pm_hh8(foo)
|