| # RUN: yaml2obj %s -o %t |
| # REQUIRES: x86-registered-target |
| |
| ## When specifying --triple, the help message should be printed for the specified target. |
| # RUN: llvm-objdump --mattr=help --triple=x86_64 2>&1 | FileCheck %s |
| # RUN: llvm-objdump --mcpu=help --triple=x86_64 2>&1 | FileCheck %s |
| |
| ## The help message will depend on the target specified by --triple even if the input is for a different target. |
| # RUN: llvm-objdump --mattr=help --triple=x86_64 %t 2>&1 | FileCheck %s |
| # RUN: llvm-objdump --mcpu=help --triple=x86_64 %t 2>&1 | FileCheck %s |
| |
| # CHECK: Available CPUs for this target: |
| # CHECK: x86-64 |
| # CHECK: Available features for this target: |
| |
| --- !ELF |
| FileHeader: |
| Class: ELFCLASS32 |
| Data: ELFDATA2LSB |
| Type: ET_EXEC |
| Machine: EM_MIPS |