[lld] ac4c430 - [ELF][test] Improve AVR relocation tests
Ben Shi via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 29 00:28:55 PST 2023
Author: Ben Shi
Date: 2023-01-29T16:28:42+08:00
New Revision: ac4c430a828ea1e643be9d4c5a3430d8be43599a
URL: https://github.com/llvm/llvm-project/commit/ac4c430a828ea1e643be9d4c5a3430d8be43599a
DIFF: https://github.com/llvm/llvm-project/commit/ac4c430a828ea1e643be9d4c5a3430d8be43599a.diff
LOG: [ELF][test] Improve AVR relocation tests
Reviewed By: aykevl, MaskRay
Differential Revision: https://reviews.llvm.org/D141197
Added:
Modified:
lld/test/ELF/avr-reloc.s
Removed:
################################################################################
diff --git a/lld/test/ELF/avr-reloc.s b/lld/test/ELF/avr-reloc.s
index 148ec3e1eea40..9d435137a2579 100644
--- a/lld/test/ELF/avr-reloc.s
+++ b/lld/test/ELF/avr-reloc.s
@@ -70,14 +70,14 @@ adiw r24, b ; R_AVR_6_ADIW
in r20, b ; R_AVR_PORT6
sbic b, 1 ; R_AVR_PORT5
-;; The disassembler is not yet able to decode those opcodes
-;; 0f c0 rjmp .+30
-;; ee cf rjmp .-36
-;; 69 f0 breq .+26
-;; 61 f3 breq .-40
.section .PCREL,"ax", at progbits
-; HEX-LABEL: section .PCREL:
-; HEX-NEXT: 0fc0eecf 69f061f3
+; CHECK-LABEL: section .PCREL
+; CHECK: rjmp .+30
+; CHECK-NEXT: rjmp .-36
+; CHECK-NEXT: breq .+26
+; CHECK-NEXT: breq .-40
+; HEX-LABEL: section .PCREL:
+; HEX-NEXT: 0fc0eecf 69f061f3
foo:
rjmp foo + 32 ; R_AVR_13_PCREL
rjmp foo - 32 ; R_AVR_13_PCREL
More information about the llvm-commits
mailing list