1 # RUN: not llvm-mc -triple riscv64 < %s 2>&1 \
2 # RUN: | FileCheck -check-prefixes=CHECK-NEED-RV32 %s
4 # These machine mode CSR register names are RV32 only.
6 csrrs t1
, pmpcfg1
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
7 csrrs t1
, pmpcfg3
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
9 csrrs t1
, mcycleh
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
10 csrrs t1
, minstreth
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
12 csrrs t1
, mhpmcounter3h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
13 csrrs t1
, mhpmcounter4h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
14 csrrs t1
, mhpmcounter5h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
15 csrrs t1
, mhpmcounter6h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
16 csrrs t1
, mhpmcounter7h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
17 csrrs t1
, mhpmcounter8h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
18 csrrs t1
, mhpmcounter9h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
19 csrrs t1
, mhpmcounter10h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
20 csrrs t1
, mhpmcounter11h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
21 csrrs t1
, mhpmcounter12h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
22 csrrs t1
, mhpmcounter13h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
23 csrrs t1
, mhpmcounter14h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
24 csrrs t1
, mhpmcounter15h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
25 csrrs t1
, mhpmcounter16h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
26 csrrs t1
, mhpmcounter17h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
27 csrrs t1
, mhpmcounter18h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
28 csrrs t1
, mhpmcounter19h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
29 csrrs t1
, mhpmcounter20h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
30 csrrs t1
, mhpmcounter21h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
31 csrrs t1
, mhpmcounter22h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
32 csrrs t1
, mhpmcounter23h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
33 csrrs t1
, mhpmcounter24h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
34 csrrs t1
, mhpmcounter25h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
35 csrrs t1
, mhpmcounter26h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
36 csrrs t1
, mhpmcounter27h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
37 csrrs t1
, mhpmcounter28h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
38 csrrs t1
, mhpmcounter29h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
39 csrrs t1
, mhpmcounter30h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
40 csrrs t1
, mhpmcounter31h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled