|
| 1 | +# Xqcisls - Qualcomm uC Scaled Load Store Extension |
| 2 | +# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcisls < %s 2>&1 \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-PLUS %s |
| 4 | +# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcisls < %s 2>&1 \ |
| 5 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s |
| 6 | + |
| 7 | +# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction |
| 8 | +qc.lrb x5, x2, x0, 4 |
| 9 | + |
| 10 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 11 | +qc.lrb x5, x2, x4 |
| 12 | + |
| 13 | +# CHECK-PLUS: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 7] |
| 14 | +qc.lrb x5, x2, x4, 12 |
| 15 | + |
| 16 | +# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 17 | +qc.lrb x5, 2, x4, 4 |
| 18 | + |
| 19 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 20 | +qc.lrb x5, x2, x4, 4 |
| 21 | + |
| 22 | + |
| 23 | +# CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction |
| 24 | +qc.lrh x1, x12, x0, 2 |
| 25 | + |
| 26 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 27 | +qc.lrh x1, x12, x6 |
| 28 | + |
| 29 | +# CHECK-PLUS: :[[@LINE+1]]:21: error: immediate must be an integer in the range [0, 7] |
| 30 | +qc.lrh x1, x12, x6, 22 |
| 31 | + |
| 32 | +# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 33 | +qc.lrh x1, 12, x6, 2 |
| 34 | + |
| 35 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 36 | +qc.lrh x1, x12, x6, 2 |
| 37 | + |
| 38 | + |
| 39 | +# CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction |
| 40 | +qc.lrw x15, x7, x0, 1 |
| 41 | + |
| 42 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 43 | +qc.lrw x15, x7, x14 |
| 44 | + |
| 45 | +# CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] |
| 46 | +qc.lrw x15, x7, x14, 11 |
| 47 | + |
| 48 | +# CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 49 | +qc.lrw x15, 7, x14, 1 |
| 50 | + |
| 51 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 52 | +qc.lrw x15, x7, x14, 1 |
| 53 | + |
| 54 | + |
| 55 | +# CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction |
| 56 | +qc.lrbu x9, x11, x0, 7 |
| 57 | + |
| 58 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 59 | +qc.lrbu x9, x11, x4 |
| 60 | + |
| 61 | +# CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] |
| 62 | +qc.lrbu x9, x11, x4, 37 |
| 63 | + |
| 64 | +# CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 65 | +qc.lrbu x9, 11, x4, 7 |
| 66 | + |
| 67 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 68 | +qc.lrbu x9, x11, x4, 7 |
| 69 | + |
| 70 | + |
| 71 | +# CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction |
| 72 | +qc.lrhu x16, x6, x0, 4 |
| 73 | + |
| 74 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 75 | +qc.lrhu x16, x6, x10 |
| 76 | + |
| 77 | +# CHECK-PLUS: :[[@LINE+1]]:23: error: immediate must be an integer in the range [0, 7] |
| 78 | +qc.lrhu x16, x6, x10, 44 |
| 79 | + |
| 80 | +# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction |
| 81 | +qc.lrhu x16, 6, x10, 4 |
| 82 | + |
| 83 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 84 | +qc.lrhu x16, x6, x10, 4 |
| 85 | + |
| 86 | + |
| 87 | +# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction |
| 88 | +qc.srb x0, x2, x0, 3 |
| 89 | + |
| 90 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 91 | +qc.srb x0, x2, x8 |
| 92 | + |
| 93 | +# CHECK-PLUS: :[[@LINE+1]]:20: error: immediate must be an integer in the range [0, 7] |
| 94 | +qc.srb x0, x2, x8, 93 |
| 95 | + |
| 96 | +# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 97 | +qc.srb x0, 2, x8, 3 |
| 98 | + |
| 99 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 100 | +qc.srb x0, x2, x8, 3 |
| 101 | + |
| 102 | + |
| 103 | +# CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction |
| 104 | +qc.srh x13, x0, x0, 6 |
| 105 | + |
| 106 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 107 | +qc.srh x13, x0, x20 |
| 108 | + |
| 109 | +# CHECK-PLUS: :[[@LINE+1]]:22: error: immediate must be an integer in the range [0, 7] |
| 110 | +qc.srh x13, x0, x20, 76 |
| 111 | + |
| 112 | +# CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 113 | +qc.srh x13, 0, x20, 6 |
| 114 | + |
| 115 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 116 | +qc.srh x13, x0, x20, 6 |
| 117 | + |
| 118 | + |
| 119 | +# CHECK: :[[@LINE+1]]:18: error: invalid operand for instruction |
| 120 | +qc.srw x17, x18, x0, 0 |
| 121 | + |
| 122 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 123 | +qc.srw x17, x18, x19 |
| 124 | + |
| 125 | +# CHECK-PLUS: :[[@LINE+1]]:23: error: immediate must be an integer in the range [0, 7] |
| 126 | +qc.srw x17, x18, x19, 10 |
| 127 | + |
| 128 | +# CHECK: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 129 | +qc.srw x17, 18, x19, 0 |
| 130 | + |
| 131 | +# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisls' (Qualcomm uC Scaled Load Store Extension) |
| 132 | +qc.srw x17, x18, x19, 0 |
0 commit comments