[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / llvm / test / MC / RISCV / rvzcmt-user-csr-name.s
blob58fe43e2aa88dae1c04a13cffb3897fe8b7fad49
1 # RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -mattr=+zcmt -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zcmt < %s \
4 # RUN: | llvm-objdump -d --mattr=+zcmt - \
5 # RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
7 # RUN: llvm-mc %s -triple=riscv64 -riscv-no-aliases -mattr=+zcmt -show-encoding \
8 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
9 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zcmt < %s \
10 # RUN: | llvm-objdump -d --mattr=+zcmt - \
11 # RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
13 ##################################
14 # Jump Vector Table CSR
15 ##################################
17 # jvt
18 # name
19 # CHECK-INST: csrrs t1, jvt, zero
20 # CHECK-ENC: encoding: [0x73,0x23,0x70,0x01]
21 # CHECK-INST-ALIAS: csrr t1, jvt
22 # uimm12
23 # CHECK-INST: csrrs t2, jvt, zero
24 # CHECK-ENC: encoding: [0xf3,0x23,0x70,0x01]
25 # CHECK-INST-ALIAS: csrr t2, jvt
26 # name
27 csrrs t1, jvt, zero
28 # uimm12
29 csrrs t2, 0x017, zero