Skip to content

Commit

Permalink
[AVR] Fix LLD test (#106739)
Browse files Browse the repository at this point in the history
Since we don't generate relocations for those, it doesn't make sense to
assert them here; fallout of
#106722.
  • Loading branch information
Patryk27 authored Aug 30, 2024
1 parent d01e0f7 commit a3816b5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lld/test/ELF/avr-reloc.s
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,6 @@ adiw r24, b ; R_AVR_6_ADIW
in r20, b ; R_AVR_PORT6
sbic b, 1 ; R_AVR_PORT5

.section .PCREL,"ax",@progbits
; CHECK-LABEL: section .PCREL
; CHECK: rjmp .+30
; CHECK-NEXT: rjmp .-36
; CHECK-NEXT: breq .+26
; CHECK-NEXT: breq .-40
; CHECK-NEXT: rjmp .-4096
; CHECK-NEXT: rjmp .+4094
; CHECK-NEXT: rjmp .+4094
; CHECK-NEXT: rjmp .-4096
; CHECK-NEXT: breq .-128
; CHECK-NEXT: breq .+126
; HEX-LABEL: section .PCREL:
; HEX-NEXT: 0fc0eecf 69f061f3
foo:
rjmp foo + 32 ; R_AVR_13_PCREL
rjmp foo - 32 ; R_AVR_13_PCREL
breq foo + 32 ; R_AVR_7_PCREL
breq foo - 32 ; R_AVR_7_PCREL
rjmp 1f - 4096 $ 1: ; R_AVR_13_PCREL
rjmp 1f + 4094 $ 1: ; R_AVR_13_PCREL
rjmp 1f - 4098 $ 1: ; R_AVR_13_PCREL (overflow)
rjmp 1f + 4096 $ 1: ; R_AVR_13_PCREL (overflow)
breq 1f - 128 $ 1: ; R_AVR_7_PCREL
breq 1f + 126 $ 1: ; R_AVR_7_PCREL

.section .LDSSTS,"ax",@progbits
; CHECK-LABEL: section .LDSSTS:
; CHECK: lds r20, 0x1e
Expand Down

0 comments on commit a3816b5

Please sign in to comment.