1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/MC/RISCV/numeric-reg-names.s
Sam Elliott b390d5a473 [RISCV] Support llvm-objdump -M no-aliases and -M numeric
Summary:
Now that llvm-objdump allows target-specific options, we match the
`no-aliases` and `numeric` options for RISC-V, as supported by GNU objdump.

This is done by overriding the variables used for the command-line options, so
that the command-line options are still supported.

This patch updates all tests using `llvm-objdump -riscv-no-aliases` to use
`llvm-objdump -M no-aliases`.

Reviewers: luismarques, asb

Reviewed By: luismarques, asb

Subscribers: pzheng, hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66139

llvm-svn: 371534
2019-09-10 16:24:03 +00:00

168 lines
3.6 KiB
ArmAsm

# RUN: llvm-mc -triple riscv32 < %s -riscv-arch-reg-names \
# RUN: | FileCheck -check-prefix=CHECK-NUMERIC %s
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
# RUN: | llvm-objdump -d -M numeric - \
# RUN: | FileCheck -check-prefix=CHECK-NUMERIC %s
# CHECK-NUMERIC: addi x10, x0, 1
# CHECK-NUMERIC-NEXT: addi x10, x0, 1
addi a0, x0, 1
addi a0, zero, 1
# CHECK-NUMERIC: addi x10, x1, 1
# CHECK-NUMERIC-NEXT: addi x10, x1, 1
addi a0, x1, 1
addi a0, ra, 1
# CHECK-NUMERIC: addi x10, x2, 1
# CHECK-NUMERIC-NEXT: addi x10, x2, 1
addi a0, x2, 1
addi a0, sp, 1
# CHECK-NUMERIC: addi x10, x3, 1
# CHECK-NUMERIC-NEXT: addi x10, x3, 1
addi a0, x3, 1
addi a0, gp, 1
# CHECK-NUMERIC: addi x10, x4, 1
# CHECK-NUMERIC-NEXT: addi x10, x4, 1
addi a0, x4, 1
addi a0, tp, 1
# CHECK-NUMERIC: addi x10, x5, 1
# CHECK-NUMERIC-NEXT: addi x10, x5, 1
addi a0, x5, 1
addi a0, t0, 1
# CHECK-NUMERIC: addi x10, x6, 1
# CHECK-NUMERIC-NEXT: addi x10, x6, 1
addi a0, x6, 1
addi a0, t1, 1
# CHECK-NUMERIC: addi x10, x7, 1
# CHECK-NUMERIC-NEXT: addi x10, x7, 1
addi a0, x7, 1
addi a0, t2, 1
# CHECK-NUMERIC: addi x10, x8, 1
# CHECK-NUMERIC-NEXT: addi x10, x8, 1
# CHECK-NUMERIC-NEXT: addi x10, x8, 1
addi a0, x8, 1
addi a0, s0, 1
addi a0, fp, 1
# CHECK-NUMERIC: addi x10, x9, 1
# CHECK-NUMERIC-NEXT: addi x10, x9, 1
addi a0, x9, 1
addi a0, s1, 1
# CHECK-NUMERIC: addi x10, x10, 1
# CHECK-NUMERIC-NEXT: addi x10, x10, 1
addi a0, x10, 1
addi a0, a0, 1
# CHECK-NUMERIC: addi x10, x11, 1
# CHECK-NUMERIC-NEXT: addi x10, x11, 1
addi a0, x11, 1
addi a0, a1, 1
# CHECK-NUMERIC: addi x10, x12, 1
# CHECK-NUMERIC-NEXT: addi x10, x12, 1
addi a0, x12, 1
addi a0, a2, 1
# CHECK-NUMERIC: addi x10, x13, 1
# CHECK-NUMERIC-NEXT: addi x10, x13, 1
addi a0, x13, 1
addi a0, a3, 1
# CHECK-NUMERIC: addi x10, x14, 1
# CHECK-NUMERIC-NEXT: addi x10, x14, 1
addi a0, x14, 1
addi a0, a4, 1
# CHECK-NUMERIC: addi x10, x15, 1
# CHECK-NUMERIC-NEXT: addi x10, x15, 1
addi a0, x15, 1
addi a0, a5, 1
# CHECK-NUMERIC: addi x10, x16, 1
# CHECK-NUMERIC-NEXT: addi x10, x16, 1
addi a0, x16, 1
addi a0, a6, 1
# CHECK-NUMERIC: addi x10, x17, 1
# CHECK-NUMERIC-NEXT: addi x10, x17, 1
addi a0, x17, 1
addi a0, a7, 1
# CHECK-NUMERIC: addi x10, x18, 1
# CHECK-NUMERIC-NEXT: addi x10, x18, 1
addi a0, x18, 1
addi a0, s2, 1
# CHECK-NUMERIC: addi x10, x19, 1
# CHECK-NUMERIC-NEXT: addi x10, x19, 1
addi a0, x19, 1
addi a0, s3, 1
# CHECK-NUMERIC: addi x10, x20, 1
# CHECK-NUMERIC-NEXT: addi x10, x20, 1
addi a0, x20, 1
addi a0, s4, 1
# CHECK-NUMERIC: addi x10, x21, 1
# CHECK-NUMERIC-NEXT: addi x10, x21, 1
addi a0, x21, 1
addi a0, s5, 1
# CHECK-NUMERIC: addi x10, x22, 1
# CHECK-NUMERIC-NEXT: addi x10, x22, 1
addi a0, x22, 1
addi a0, s6, 1
# CHECK-NUMERIC: addi x10, x23, 1
# CHECK-NUMERIC-NEXT: addi x10, x23, 1
addi a0, x23, 1
addi a0, s7, 1
# CHECK-NUMERIC: addi x10, x24, 1
# CHECK-NUMERIC-NEXT: addi x10, x24, 1
addi a0, x24, 1
addi a0, s8, 1
# CHECK-NUMERIC: addi x10, x25, 1
# CHECK-NUMERIC-NEXT: addi x10, x25, 1
addi a0, x25, 1
addi a0, s9, 1
# CHECK-NUMERIC: addi x10, x26, 1
# CHECK-NUMERIC-NEXT: addi x10, x26, 1
addi a0, x26, 1
addi a0, s10, 1
# CHECK-NUMERIC: addi x10, x27, 1
# CHECK-NUMERIC-NEXT: addi x10, x27, 1
addi a0, x27, 1
addi a0, s11, 1
# CHECK-NUMERIC: addi x10, x28, 1
# CHECK-NUMERIC-NEXT: addi x10, x28, 1
addi a0, x28, 1
addi a0, t3, 1
# CHECK-NUMERIC: addi x10, x29, 1
# CHECK-NUMERIC-NEXT: addi x10, x29, 1
addi a0, x29, 1
addi a0, t4, 1
# CHECK-NUMERIC: addi x10, x30, 1
# CHECK-NUMERIC-NEXT: addi x10, x30, 1
addi a0, x30, 1
addi a0, t5, 1
# CHECK-NUMERIC: addi x10, x31, 1
# CHECK-NUMERIC-NEXT: addi x10, x31, 1
addi a0, x31, 1
addi a0, t6, 1