1 # RUN: not llvm-mc -triple riscv32 -mattr=+d -mattr=+xtheadfmemidx < %s 2>&1 | FileCheck %s
2 # RUN: not llvm-mc -triple riscv64 -mattr=+d -mattr=+xtheadfmemidx < %s 2>&1 | FileCheck %s
4 th.flrd fa0
, a1
, a2
, 5 # CHECK: :[[@LINE]]:22: error: immediate must be an integer in the range [0, 3]
5 th.flrd a0
, a1
, a2
, 3 # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
6 th.flrw
0(fa0
), a1
, a2
, 0 # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
7 th.flrw fa0
, 4(a1
), a2
, 3 # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
8 th.fsrd fa0
, a1
, -1(a2
), 0 # CHECK: :[[@LINE]]:18: error: invalid operand for instruction
9 th.fsrd fa0
, a1
, a2
, -3 # CHECK: :[[@LINE]]:22: error: immediate must be an integer in the range [0, 3]