xref: /llvm-project/llvm/test/MC/RISCV/xtheadmac-invalid.s (revision d4012bc43f9a752d77f464286d91f72f4c6970ee)
1# RUN: not llvm-mc -triple riscv32 -mattr=+xtheadmac < %s 2>&1 | FileCheck %s
2# RUN: not llvm-mc -triple riscv64 -mattr=+xtheadmac < %s 2>&1 | FileCheck %s
3
4th.mula  t0, t1, 0(t2)  # CHECK: :[[@LINE]]:18: error: invalid operand for instruction
5th.muls  t0, 12, t2     # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
6th.mulsh t0, t1, 34     # CHECK: :[[@LINE]]:18: error: invalid operand for instruction
7th.mulsw t0, -56, t2    # CHECK: :[[@LINE]]:14: error: invalid operand for instruction
8