Files
clang-p2996/llvm/test/tools/llvm-objdump/ELF/PowerPC/mcpu.s
Fangrui Song a4d1259e61 [llvm-objdump] Default to --mcpu=future for PPC32
Extend D127824 to the 32-bit Power architecture.
AFAICT GNU objdump -d dumps all instructions for 32-bit as well.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D155114
2023-07-12 18:24:18 -07:00

19 lines
780 B
ArmAsm

## Test that we default to --mcpu=future and disassemble all known instructions.
## The default is different from producers (e.g. Clang).
# RUN: llvm-mc -triple=powerpc64le -filetype=obj %s -o %t
# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s --check-prefixes=CHECK,FUTURE
# RUN: llvm-objdump -d --no-show-raw-insn --mcpu=future %t | FileCheck %s --check-prefixes=CHECK,FUTURE
# RUN: llvm-objdump -d --no-show-raw-insn --mcpu=pwr9 %t | FileCheck %s --check-prefixes=CHECK,UNKNOWN
# RUN: llvm-mc -triple=powerpc -filetype=obj %s -o %t
# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s --check-prefixes=CHECK,FUTURE
# CHECK-LABEL: <_start>:
# FUTURE-NEXT: pld 3, 0(0), 1
# UNKNOWN-COUNT-2: <unknown>
# CHECK-EMPTY:
.globl _start
_start:
pld 3, 0(0), 1