1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/MC/RISCV/numeric-reg-names.s
Fangrui Song c2d4999f01 [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names
In objdump, many targets support `-M no-aliases`.  Instead of having a
`-*-no-aliases` for each target when LLVM adds the support, it makes more sense
to introduce objdump style `-M`.

-riscv-arch-reg-names is removed. -riscv-no-aliases has too many uses and thus is retained for now.

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D103004
2021-05-26 10:43:32 -07:00

168 lines
3.6 KiB
ArmAsm

# RUN: llvm-mc -triple riscv32 -M numeric %s \
# 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