[llvm] [llvm-objdump][AVR] Detect AVR architecture from ELF flags for disassembling (PR #174731)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 22 00:46:47 PST 2026


================
@@ -0,0 +1,44 @@
+## When --mattr and --mcpu are both empty, disassemble ELF with e_flags derived feature.
+# RUN: yaml2obj -DARCH_ARCHVERSION=ARCH_AVR1 %s -o %t.avr1
+# RUN: llvm-objdump -d %t.avr1 | FileCheck %s --check-prefixes=AVR1
----------------
jh7370 wrote:

Nit: it's more conventional to use `--check-prefix` instead of `--check-prefixes` when there's only one prefix for a given run of FileCheck.

https://github.com/llvm/llvm-project/pull/174731


More information about the llvm-commits mailing list