Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rvk-user-csr-name.s
blob0615da0ad118ee105729afe856741dc42715897c
1 # RUN: llvm-mc %s -triple=riscv32 -riscv-no-aliases -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zkr < %s \
4 # RUN: | llvm-objdump -d --mattr=+zkr - \
5 # RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
7 # RUN: llvm-mc %s -triple=riscv64 -riscv-no-aliases -show-encoding \
8 # RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
9 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zkr < %s \
10 # RUN: | llvm-objdump -d --mattr=+zkr - \
11 # RUN: | FileCheck -check-prefix=CHECK-INST-ALIAS %s
13 ##################################
14 # Entropy Source CSR
15 ##################################
17 # seed
18 # name
19 # CHECK-INST: csrrs t1, seed, zero
20 # CHECK-ENC: encoding: [0x73,0x23,0x50,0x01]
21 # CHECK-INST-ALIAS: csrr t1, seed
22 # uimm12
23 # CHECK-INST: csrrs t2, seed, zero
24 # CHECK-ENC: encoding: [0xf3,0x23,0x50,0x01]
25 # CHECK-INST-ALIAS: csrr t2, seed
26 # name
27 csrrs t1, seed, zero
28 # uimm12
29 csrrs t2, 0x015, zero