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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 02:01:49 PST 2025


================
@@ -0,0 +1,64 @@
+# RUN: yaml2obj %s -o %t
+# REQUIRES: arm-registered-target,x86-registered-target
+
+
+# CHECK-HELP: Available CPUs for this target:
+# CHECK-ARM: arm
+# CHECK-X86: i386
+# CHECK-HELP: Available features for this target:
+## To check we still disassemble the file:
+# CHECK-DISASM: file format elf32-littlearm
+# CHECK-SECTION-HEADER: Sections:
+# CHECK-SECTION-HEADER: Idx Name            Size     VMA      Type
+## Don't check the OS-dependent message "No such file or directory".
+# CHECK-FILE-ISSUE: error: 'a.out':
----------------
jh7370 wrote:

Lit has built-in substitutions to allow platform-independent error message checks. Search for `%errc_` to find the exact names and example usage in other tests.

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


More information about the llvm-commits mailing list