brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · e806da8 Raw
102 lines · plain
1# RUN: not llvm-mc -triple=riscv64 -mattr=zcmp -M no-aliases -show-encoding < %s 2>&1 \2# RUN:     | FileCheck -check-prefixes=CHECK-ERROR %s3 4# CHECK-ERROR: :[[@LINE+1]]:11: error: invalid operand for instruction5cm.mvsa01 a1, a26 7# CHECK-ERROR: :[[@LINE+1]]:11: error: rs1 and rs2 must be different8cm.mvsa01 s0, s09 10# CHECK-ERROR: :[[@LINE+1]]:11: error: invalid operand for instruction11cm.mva01s a1, a212 13# CHECK-ERROR: :[[@LINE+1]]:12: error: invalid register list, '{ra, s0-s10}' or '{x1, x8-x9, x18-x26}' is not supported14cm.popretz {ra, s0-s10}, 11215 16# CHECK-ERROR: :[[@LINE+1]]:25: error: stack adjustment for register list must be a multiple of 16 bytes in the range [32, 80]17cm.popretz {ra, s0-s1}, 11218 19# CHECK-ERROR: :[[@LINE+1]]:15: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]20cm.push {ra}, 1621 22# CHECK-ERROR: :[[@LINE+1]]:21: error: stack adjustment for register list must be a multiple of 16 bytes in the range [32, 80]23cm.pop {ra, s0-s1}, -3224 25# CHECK-ERROR: :[[@LINE+1]]:15: error: stack adjustment for register list must be a multiple of 16 bytes in the range [-64, -16]26cm.push {ra}, -1527 28# CHECK-ERROR: :[[@LINE+1]]:21: error: stack adjustment for register list must be a multiple of 16 bytes in the range [32, 80]29cm.pop {ra, s0-s1}, -3330 31# CHECK-ERROR: :[[@LINE+1]]:9: error: register list must start from 'ra' or 'x1'32cm.pop {s0}, -4033 34# CHECK-ERROR: :[[@LINE+1]]:13: error: register must be 's0'35cm.pop {ra, t1}, -4036 37# CHECK-ERROR: :[[@LINE+1]]:16: error: register must be in the range 's1' to 's11'38cm.pop {ra, s0-t1}, -4039 40# CHECK-ERROR: :[[@LINE+1]]:20: error: register must be 'x18'41cm.pop {x1, x8-x9, x28}, -4042 43# CHECK-ERROR: :[[@LINE+1]]:24: error: register must be in the range 'x19' to 'x27'44cm.pop {x1, x8-x9, x18-x28}, -4045 46# CHECK-ERROR: :[[@LINE+1]]:24: error: register must be in the range 'x19' to 'x27'47cm.pop {x1, x8-x9, x18-x17}, -4048 49# CHECK-ERROR: :[[@LINE+1]]:16: error: register must be 'x9'50cm.pop {x1, x8-f8, x18-x17}, -4051 52# CHECK-ERROR: :[[@LINE+1]]:15: error: stack adjustment is invalid for this instruction and register list53cm.pop {ra}, -x154 55# CHECK-ERROR: :[[@LINE+1]]:15: error: stack adjustment is invalid for this instruction and register list56cm.push {ra}, x157 58# CHECK-ERROR: :[[@LINE+1]]:12: error: register 'x1' cannot start a multiple register range59cm.push {x1-x9}, -3260 61# CHECK-ERROR: :[[@LINE+1]]:12: error: register 'ra' cannot start a multiple register range62cm.push {ra-s0}, -3263 64# CHECK-ERROR: :[[@LINE+1]]:13: error: register must be 'x8'65cm.push {x1,s0}, -3266 67# CHECK-ERROR: :[[@LINE+1]]:13: error: register must be 's0'68cm.push {ra,x8}, -3269 70# CHECK-ERROR: :[[@LINE+1]]:16: error: register must be 'x9'71cm.push {x1,x8-s1}, -3272 73# CHECK-ERROR: :[[@LINE+1]]:16: error: register must be in the range 's1' to 's11'74cm.push {ra,s0-x9}, -3275 76# CHECK-ERROR: :[[@LINE+1]]:16: error: register must be 'x9'77cm.push {x1,x8-x18}, -3278 79# CHECK-ERROR: :[[@LINE+1]]:19: error: register must be 'x18'80cm.push {x1,x8-x9,s2}, -3281 82# CHECK-ERROR: :[[@LINE+1]]:19: error: too many register ranges83cm.push {ra,s0-s1,x18}, -3284 85# CHECK-ERROR: :[[@LINE+1]]:19: error: too many register ranges86cm.push {ra,s0-s1,s2}, -3287 88# CHECK-ERROR: :[[@LINE+1]]:23: error: register must be in the range 'x19' to 'x27'89cm.push {x1,x8-x9,x18-s3}, -3290 91# CHECK-ERROR: :[[@LINE+1]]:27: error: too many register ranges92cm.push {x1,x8-x9,x18-x19,x20}, -3293 94# CHECK-ERROR: :[[@LINE+1]]:19: error: too many register ranges95cm.push {ra,s0-s1,s3}, -3296 97# CHECK-ERROR: :[[@LINE+1]]:18: error: expected ',' or '}'98cm.push {ra,s0-s1-s2}, -3299 100# CHECK-ERROR: :[[@LINE+1]]:16: error: expected ',' or '}'101cm.push {ra, s0+s11}, -32102