1 # SCIE - SiFive Custom Instructions Extension.
2 # RUN: not llvm-mc -triple riscv32 -mattr=-xsfcie < %s 2>&1 | FileCheck %s
3 # RUN: not llvm-mc -triple riscv64 -mattr=-xsfcie < %s 2>&1 | FileCheck %s
5 cflush.d.l1
0x10 # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
7 cdiscard.d.l1
0x10 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
9 cflush.d.l1
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
11 cdiscard.d.l1
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
13 cflush.d.l1 x0
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
15 cflush.d.l1 x7
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
17 cdiscard.d.l1 x0
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
19 cdiscard.d.l1 x7
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
21 cease x1
# CHECK: :[[@LINE]]:7: error: invalid operand for instruction
23 cease
0x10 # CHECK: :[[@LINE]]:7: error: invalid operand for instruction
25 cease
# CHECK: :[[@LINE]]:1: error: instruction requires the following: 'XSfcie' (SiFive Custom Instruction Extension SCIE.)
27 csrr t1
, mbpm
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
29 csrr t1
, mfd
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
31 csrr t1
, mpd
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
33 csrr t1
, mnscratch
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
35 csrr t1
, mnepc
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
37 csrr t1
, mncause
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled
39 csrr t1
, mnstatus
# CHECK: :[[@LINE]]:10: error: system register use requires an option to be enabled