45 lines · plain
1# RUN: not llvm-mc -triple=riscv32 -mattr=+experimental-xqccmp -M no-aliases -show-encoding < %s 2>&1 \2# RUN: | FileCheck -check-prefixes=CHECK-ERROR %s3 4# CHECK-ERROR: :[[@LINE+1]]:14: error: invalid operand for instruction5qc.cm.mvsa01 a1, a26 7# CHECK-ERROR: :[[@LINE+1]]:14: error: rs1 and rs2 must be different8qc.cm.mvsa01 s0, s09 10# CHECK-ERROR: :[[@LINE+1]]:14: error: invalid operand for instruction11qc.cm.mva01s a1, a212 13# CHECK-ERROR: :[[@LINE+1]]:15: error: invalid register list, '{ra, s0-s10}' or '{x1, x8-x9, x18-x26}' is not supported14qc.cm.popretz {ra, s0-s10}, 11215 16# CHECK-ERROR: :[[@LINE+1]]:28: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64]17qc.cm.popretz {ra, s0-s1}, 11218 19# CHECK-ERROR: :[[@LINE+1]]:18: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]20qc.cm.push {ra}, 1621 22# CHECK-ERROR: :[[@LINE+1]]:24: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]23qc.cm.pushfp {ra, s0}, 1624 25# CHECK-ERROR: :[[@LINE+1]]:24: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64]26qc.cm.pop {ra, s0-s1}, -3227 28# CHECK-ERROR: :[[@LINE+1]]:18: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]29qc.cm.push {ra}, -830 31# CHECK-ERROR: :[[@LINE+1]]:24: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]32qc.cm.pushfp {ra, s0}, -1233 34# CHECK-ERROR: :[[@LINE+1]]:24: error: stack adjustment for register list must be a multiple of 16 bytes in the range [16, 64]35qc.cm.pop {ra, s0-s1}, -4036 37# CHECK-ERROR: :[[@LINE+1]]:14: error: register list must include 's0' or 'x8'38qc.cm.pushfp {ra}, -1639 40# CHECK-ERROR: :[[@LINE+1]]:12: error: operand must be {ra [, s0[-sN]]} or {x1 [, x8[-x9][, x18[-xN]]]}41qc.cm.push x1, -1642 43# CHECK-ERROR: :[[@LINE+1]]:14: error: operand must be {ra, s0[-sN]} or {x1, x8[-x9][, x18[-xN]]}44qc.cm.pushfp x1, -1645