brintos

brintos / llvm-project-archived public Read only

0
0
Text · 9.4 KiB · 8c341c6 Raw
241 lines · plain
1# Xqcia - Qualcomm uC Arithmetic Extension2# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcia < %s 2>&1 \3# RUN:     | FileCheck -check-prefixes=CHECK,CHECK-PLUS %s4# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcia < %s 2>&1 \5# RUN:     | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s6 7# CHECK-PLUS: :[[@LINE+2]]:20: error: register must be a GPR excluding zero (x0)8# CHECK-MINUS: :[[@LINE+1]]:20: error: invalid operand for instruction9qc.shlsat x10, x3, 1710 11# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction12qc.shlsat x10, x313 14# CHECK-PLUS: :[[@LINE+2]]:11: error: register must be a GPR excluding zero (x0)15# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction16qc.shlsat x0, x3, x1717 18# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)19# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction20qc.shlsat x10, x0, x1721 22# CHECK-PLUS: :[[@LINE+2]]:20: error: register must be a GPR excluding zero (x0)23# CHECK-MINUS: :[[@LINE+1]]:20: error: invalid operand for instruction24qc.shlsat x10, x3, x025 26# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)27qc.shlsat x10, x3, x1728 29 30# CHECK-PLUS: :[[@LINE+2]]:22: error: register must be a GPR excluding zero (x0)31# CHECK-MINUS: :[[@LINE+1]]:22: error: invalid operand for instruction32qc.shlusat x23, x25, 2733 34# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction35qc.shlusat x23, x2536 37# CHECK-PLUS: :[[@LINE+2]]:12: error: register must be a GPR excluding zero (x0)38# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction39qc.shlusat x0, x25, x2740 41# CHECK-PLUS: :[[@LINE+2]]:17: error: register must be a GPR excluding zero (x0)42# CHECK-MINUS: :[[@LINE+1]]:17: error: invalid operand for instruction43qc.shlusat x23, x0, x2744 45# CHECK-PLUS: :[[@LINE+2]]:22: error: register must be a GPR excluding zero (x0)46# CHECK-MINUS: :[[@LINE+1]]:22: error: invalid operand for instruction47qc.shlusat x23, x25, x048 49# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)50qc.shlusat x23, x25, x2751 52 53# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)54# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction55qc.addsat x17, x14, 756 57# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction58qc.addsat x17, x1459 60# CHECK-PLUS: :[[@LINE+2]]:11: error: register must be a GPR excluding zero (x0)61# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction62qc.addsat x0, x14, x763 64# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)65# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction66qc.addsat x17, x0, x767 68# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)69# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction70qc.addsat x17, x14, x071 72# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)73qc.addsat x17, x14, x774 75 76# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)77# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction78qc.addusat x8, x18, 2879 80# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction81qc.addusat x8, x1882 83# CHECK-PLUS: :[[@LINE+2]]:12: error: register must be a GPR excluding zero (x0)84# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction85qc.addusat x0, x18, x2886 87# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)88# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction89qc.addusat x8, x0, x2890 91# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)92# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction93qc.addusat x8, x18, x094 95# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)96qc.addusat x8, x18, x2897 98 99# CHECK-PLUS: :[[@LINE+2]]:20: error: register must be a GPR excluding zero (x0)100# CHECK-MINUS: :[[@LINE+1]]:20: error: invalid operand for instruction101qc.subsat x22, x2, 12102 103# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction104qc.subsat x22, x2105 106# CHECK-PLUS: :[[@LINE+2]]:11: error: register must be a GPR excluding zero (x0)107# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction108qc.subsat x0, x2, x12109 110# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)111# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction112qc.subsat x22, x0, x12113 114# CHECK-PLUS: :[[@LINE+2]]:20: error: register must be a GPR excluding zero (x0)115# CHECK-MINUS: :[[@LINE+1]]:20: error: invalid operand for instruction116qc.subsat x22, x2, x0117 118# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)119qc.subsat x22, x2, x12120 121 122# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)123# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction124qc.subusat x9, x14, 17125 126# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction127qc.subusat x9, x14128 129# CHECK-PLUS: :[[@LINE+2]]:12: error: register must be a GPR excluding zero (x0)130# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction131qc.subusat x0, x14, x17132 133# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)134# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction135qc.subusat x9, x0, x17136 137# CHECK-PLUS: :[[@LINE+2]]:21: error: register must be a GPR excluding zero (x0)138# CHECK-MINUS: :[[@LINE+1]]:21: error: invalid operand for instruction139qc.subusat x9, x14, x0140 141# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)142qc.subusat x9, x14, x17143 144 145# CHECK-PLUS: :[[@LINE+2]]:18: error: register must be a GPR excluding zero (x0)146# CHECK-MINUS: :[[@LINE+1]]:18: error: invalid operand for instruction147qc.wrap x3, x30, 23148 149# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction150qc.wrap x3, x30151 152# CHECK-PLUS: :[[@LINE+2]]:9: error: register must be a GPR excluding zero (x0)153# CHECK-MINUS: :[[@LINE+1]]:9: error: invalid operand for instruction154qc.wrap x0, x30, x23155 156# CHECK-PLUS: :[[@LINE+2]]:18: error: register must be a GPR excluding zero (x0)157# CHECK-MINUS: :[[@LINE+1]]:18: error: invalid operand for instruction158qc.wrap x3, x30, x0159 160# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)161qc.wrap x3, x30, x23162 163 164# CHECK-PLUS: :[[@LINE+2]]:10: error: register must be a GPR excluding zero (x0)165# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction166qc.wrapi x0, 12, 2047167 168# CHECK-PLUS: :[[@LINE+2]]:10: error: register must be a GPR excluding zero (x0)169# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction170qc.wrapi x0, x12, 2047171 172# CHECK-PLUS: :[[@LINE+2]]:14: error: register must be a GPR excluding zero (x0)173# CHECK-MINUS: :[[@LINE+1]]:14: error: invalid operand for instruction174qc.wrapi x6, x0, 2047175 176# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction177qc.wrapi x6, x12178 179# CHECK-PLUS: :[[@LINE+1]]:19: error: immediate must be an integer in the range [0, 2047]180qc.wrapi x6, x12, 2048181 182# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)183qc.wrapi x6, x12, 2047184 185 186# CHECK-PLUS: :[[@LINE+2]]:13: error: register must be a GPR excluding zero (x0)187# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction188qc.norm x3, 7189 190# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction191qc.norm x3192 193# CHECK-PLUS: :[[@LINE+2]]:9: error: register must be a GPR excluding zero (x0)194# CHECK-MINUS: :[[@LINE+1]]:9: error: invalid operand for instruction195qc.norm x0, x7196 197# CHECK-PLUS: :[[@LINE+2]]:13: error: register must be a GPR excluding zero (x0)198# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction199qc.norm x3, x0200 201# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)202qc.norm x3, x7203 204 205# CHECK-PLUS: :[[@LINE+2]]:15: error: register must be a GPR excluding zero (x0)206# CHECK-MINUS: :[[@LINE+1]]:15: error: invalid operand for instruction207qc.normu x11, 17208 209# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction210qc.normu x11211 212# CHECK-PLUS: :[[@LINE+2]]:10: error: register must be a GPR excluding zero (x0)213# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction214qc.normu x0, x17215 216# CHECK-PLUS: :[[@LINE+2]]:15: error: register must be a GPR excluding zero (x0)217# CHECK-MINUS: :[[@LINE+1]]:15: error: invalid operand for instruction218qc.normu x11, x0219 220# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)221qc.normu x11, x17222 223 224# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)225# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction226qc.normeu x26, 31227 228# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction229qc.normeu x26230 231# CHECK-PLUS: :[[@LINE+2]]:11: error: register must be a GPR excluding zero (x0)232# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction233qc.normeu x0, x31234 235# CHECK-PLUS: :[[@LINE+2]]:16: error: register must be a GPR excluding zero (x0)236# CHECK-MINUS: :[[@LINE+1]]:16: error: invalid operand for instruction237qc.normeu x26, x0238 239# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)240qc.normeu x26, x31241