|
| 1 | +# Xqcicm - Qualcomm uC Conditional Move Extension |
| 2 | +# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcicm < %s 2>&1 \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-IMM %s |
| 4 | +# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcicm < %s 2>&1 \ |
| 5 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-EXT %s |
| 6 | + |
| 7 | +# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 8 | +qc.c.mveqz 9, x10 |
| 9 | + |
| 10 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 11 | +qc.c.mveqz x9 |
| 12 | + |
| 13 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 14 | +qc.c.mveqz x9, x10 |
| 15 | + |
| 16 | + |
| 17 | +# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction |
| 18 | +qc.mveq 9, x10, x11, x12 |
| 19 | + |
| 20 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 21 | +qc.mveq x9 |
| 22 | + |
| 23 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 24 | +qc.mveq x9, x10, x11, x12 |
| 25 | + |
| 26 | + |
| 27 | +# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction |
| 28 | +qc.mvge 9, x10, x11, x12 |
| 29 | + |
| 30 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 31 | +qc.mvge x9 |
| 32 | + |
| 33 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 34 | +qc.mvge x9, x10, x11, x12 |
| 35 | + |
| 36 | + |
| 37 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 38 | +qc.mvgeu 9, x10, x11, x12 |
| 39 | + |
| 40 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 41 | +qc.mvgeu x9 |
| 42 | + |
| 43 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 44 | +qc.mvgeu x9, x10, x11, x12 |
| 45 | + |
| 46 | + |
| 47 | +# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction |
| 48 | +qc.mvlt 9, x10, x11, x12 |
| 49 | + |
| 50 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 51 | +qc.mvlt x9 |
| 52 | + |
| 53 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 54 | +qc.mvlt x9, x10, x11, x12 |
| 55 | + |
| 56 | + |
| 57 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 58 | +qc.mvltu 9, x10, x11, x12 |
| 59 | + |
| 60 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 61 | +qc.mvltu x9 |
| 62 | + |
| 63 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 64 | +qc.mvltu x9, x10, x11, x12 |
| 65 | + |
| 66 | + |
| 67 | +# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction |
| 68 | +qc.mvne 9, x10, x11, x12 |
| 69 | + |
| 70 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 71 | +qc.mvne x9 |
| 72 | + |
| 73 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 74 | +qc.mvne x9, x10, x11, x12 |
| 75 | + |
| 76 | + |
| 77 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 78 | +qc.mveqi 9, x10, 5, x12 |
| 79 | + |
| 80 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 81 | +qc.mveqi x9 |
| 82 | + |
| 83 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 84 | +qc.mveqi x9, x10, 17, x12 |
| 85 | + |
| 86 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 87 | +qc.mveqi x9, x10, 5, x12 |
| 88 | + |
| 89 | + |
| 90 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 91 | +qc.mvgei 9, x10, 5, x12 |
| 92 | + |
| 93 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 94 | +qc.mvgei x9 |
| 95 | + |
| 96 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 97 | +qc.mvgei x9, x10, 17, x12 |
| 98 | + |
| 99 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 100 | +qc.mvgei x9, x10, 5, x12 |
| 101 | + |
| 102 | + |
| 103 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 104 | +qc.mvlti 9, x10, 5, x12 |
| 105 | + |
| 106 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 107 | +qc.mvlti x9 |
| 108 | + |
| 109 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 110 | +qc.mvlti x9, x10, 17, x12 |
| 111 | + |
| 112 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 113 | +qc.mvlti x9, x10, 5, x12 |
| 114 | + |
| 115 | + |
| 116 | +# CHECK: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 117 | +qc.mvnei 9, x10, 5, x12 |
| 118 | + |
| 119 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 120 | +qc.mvnei x9 |
| 121 | + |
| 122 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 123 | +qc.mvnei x9, x10, 17, x12 |
| 124 | + |
| 125 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 126 | +qc.mvnei x9, x10, 5, x12 |
| 127 | + |
| 128 | + |
| 129 | +# CHECK: :[[@LINE+1]]:11: error: invalid operand for instruction |
| 130 | +qc.mvltui 9, x10, 5, x12 |
| 131 | + |
| 132 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 133 | +qc.mvltui x9 |
| 134 | + |
| 135 | +# CHECK-IMM: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 31] |
| 136 | +qc.mvltui x9, x10, 37, x12 |
| 137 | + |
| 138 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 139 | +qc.mvltui x9, x10, 5, x12 |
| 140 | + |
| 141 | + |
| 142 | +# CHECK: :[[@LINE+1]]:11: error: invalid operand for instruction |
| 143 | +qc.mvgeui 9, x10, 5, x12 |
| 144 | + |
| 145 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 146 | +qc.mvgeui x9 |
| 147 | + |
| 148 | +# CHECK-IMM: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 31] |
| 149 | +qc.mvgeui x9, x10, 37, x12 |
| 150 | + |
| 151 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcicm' (Qualcomm uC Conditional Move Extension) |
| 152 | +qc.mvgeui x9, x10, 5, x12 |
0 commit comments