1 # RUN: not llvm-mc -triple riscv64 < %s 2>&1 \
2 # RUN: | FileCheck -check-prefixes=CHECK-NEED-RV32 %s
4 # These user mode CSR register names are RV32 only.
6 csrrs t1
, cycleh
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
7 csrrs t1
, timeh
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
8 csrrs t1
, instreth
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
10 csrrs t1
, hpmcounter3h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
11 csrrs t1
, hpmcounter4h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
12 csrrs t1
, hpmcounter5h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
13 csrrs t1
, hpmcounter6h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
14 csrrs t1
, hpmcounter7h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
15 csrrs t1
, hpmcounter8h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
16 csrrs t1
, hpmcounter9h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
17 csrrs t1
, hpmcounter10h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
18 csrrs t1
, hpmcounter11h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
19 csrrs t1
, hpmcounter12h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
20 csrrs t1
, hpmcounter13h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
21 csrrs t1
, hpmcounter14h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
22 csrrs t1
, hpmcounter15h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
23 csrrs t1
, hpmcounter16h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
24 csrrs t1
, hpmcounter17h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
25 csrrs t1
, hpmcounter18h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
26 csrrs t1
, hpmcounter19h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
27 csrrs t1
, hpmcounter20h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
28 csrrs t1
, hpmcounter21h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
29 csrrs t1
, hpmcounter22h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
30 csrrs t1
, hpmcounter23h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
31 csrrs t1
, hpmcounter24h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
32 csrrs t1
, hpmcounter25h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
33 csrrs t1
, hpmcounter26h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
34 csrrs t1
, hpmcounter27h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
35 csrrs t1
, hpmcounter28h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
36 csrrs t1
, hpmcounter29h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
37 csrrs t1
, hpmcounter30h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled
38 csrrs t1
, hpmcounter31h
, zero
# CHECK-NEED-RV32: :[[@LINE]]:11: error: system register use requires an option to be enabled