[llvm] [llvm-objdump] Add triple support to `mcpu=help` (PR #165661)

Ruoyu Qiu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 00:48:08 PST 2025


================
@@ -14,3 +14,11 @@ FileHeader:
   Data:            ELFDATA2LSB
   Type:            ET_EXEC
   Machine:         EM_X86_64
+
+# RUN: llvm-objdump --triple=x86_64 --mcpu=help 2>&1 \
+# RUN:   | FileCheck %s --check-prefix=CHECK-WITHOUT-DISASSEMBLING
+
+# CHECK-WITHOUT-DISASSEMBLING: Available CPUs for this target:
+# CHECK-WITHOUT-DISASSEMBLING: Available features for this target:
+
+; XFAIL: *
----------------
cabbaken wrote:

It seems unlikely that a user would intend to call `--mcpu=help` in combination with `--section-headers` or `-d`.
Therefore, it would probably be best if the behavior of `--mcpu=help` remains consistent with `-h`.

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


More information about the llvm-commits mailing list