[PATCH] D149318: [lld][ELF][NFC] Improve AVR tests
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 26 23:11:36 PDT 2023
benshi001 created this revision.
benshi001 added a reviewer: MaskRay.
Herald added subscribers: Jim, emaste, dylanmckay.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149318
Files:
lld/test/ELF/basic-avr.s
Index: lld/test/ELF/basic-avr.s
===================================================================
--- lld/test/ELF/basic-avr.s
+++ lld/test/ELF/basic-avr.s
@@ -1,14 +1,18 @@
# REQUIRES: avr
# RUN: llvm-mc -filetype=obj -triple=avr-unknown-linux -mcpu=atmega328p %s -o %t.o
# RUN: ld.lld %t.o -o %t.exe -Ttext=0
-# RUN: llvm-objdump -d %t.exe | FileCheck %s
+# RUN: llvm-objdump -d %t.exe --mcpu=atmega328 | FileCheck %s
main:
call foo
foo:
jmp foo
+ rcall foo
+ rjmp foo
# CHECK: <main>:
-# CHECK-NEXT: 0: 0e 94 02 00 <unknown>
+# CHECK-NEXT: 0: 0e 94 02 00 call 0x4
# CHECK: <foo>:
-# CHECK-NEXT: 4: 0c 94 02 00 <unknown>
+# CHECK-NEXT: 4: 0c 94 02 00 jmp 0x4
+# CHECK-NEXT: 8: fd df rcall .-6
+# CHECK-NEXT: a: fc cf rjmp .-8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149318.517452.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230427/3ae7764e/attachment.bin>
More information about the llvm-commits
mailing list