|
| 1 | +# Xqcics - Qualcomm uC Conditional Select Extension |
| 2 | +# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcics < %s 2>&1 \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-IMM %s |
| 4 | +# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcics < %s 2>&1 \ |
| 5 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-EXT %s |
| 6 | + |
| 7 | +# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction |
| 8 | +qc.selecteqi 9, 15, x4, x3 |
| 9 | + |
| 10 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 11 | +qc.selecteqi x9, 15, x4 |
| 12 | + |
| 13 | +# CHECK-IMM: :[[@LINE+1]]:18: error: immediate must be an integer in the range [-16, 15] |
| 14 | +qc.selecteqi x9, 16, x4, x3 |
| 15 | + |
| 16 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 17 | +qc.selecteqi x9, 15, x4, x3 |
| 18 | + |
| 19 | + |
| 20 | +# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction |
| 21 | +qc.selectieq 8, x4, x3, 12 |
| 22 | + |
| 23 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 24 | +qc.selectieq x8, x4, x3 |
| 25 | + |
| 26 | +# CHECK-IMM: :[[@LINE+1]]:26: error: immediate must be an integer in the range [-16, 15] |
| 27 | +qc.selectieq x8, x4, x3, 17 |
| 28 | + |
| 29 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 30 | +qc.selectieq x8, x4, x3, 12 |
| 31 | + |
| 32 | + |
| 33 | +# CHECK: :[[@LINE+1]]:15: error: invalid operand for instruction |
| 34 | +qc.selectieqi 9, 11, x3, 12 |
| 35 | + |
| 36 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 37 | +qc.selectieqi x9, 11, x3 |
| 38 | + |
| 39 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 40 | +qc.selectieqi x9, 16, x3, 12 |
| 41 | + |
| 42 | +# CHECK-IMM: :[[@LINE+1]]:27: error: immediate must be an integer in the range [-16, 15] |
| 43 | +qc.selectieqi x9, 11, x3, 18 |
| 44 | + |
| 45 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 46 | +qc.selectieqi x9, 11, x3, 12 |
| 47 | + |
| 48 | + |
| 49 | +# CHECK: :[[@LINE+1]]:15: error: invalid operand for instruction |
| 50 | +qc.selectiieq 9, x3, 11, 12 |
| 51 | + |
| 52 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 53 | +qc.selectiieq x9, x3, 11 |
| 54 | + |
| 55 | +# CHECK-IMM: :[[@LINE+1]]:23: error: immediate must be an integer in the range [-16, 15] |
| 56 | +qc.selectiieq x9, x3, 16, 12 |
| 57 | + |
| 58 | +# CHECK-IMM: :[[@LINE+1]]:27: error: immediate must be an integer in the range [-16, 15] |
| 59 | +qc.selectiieq x9, x3, 11, 17 |
| 60 | + |
| 61 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 62 | +qc.selectiieq x9, x3, 11, 12 |
| 63 | + |
| 64 | + |
| 65 | +# CHECK: :[[@LINE+1]]:15: error: invalid operand for instruction |
| 66 | +qc.selectiine 8, x3, 10, 11 |
| 67 | + |
| 68 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 69 | +qc.selectiine x8, x3, 10 |
| 70 | + |
| 71 | +# CHECK-IMM: :[[@LINE+1]]:23: error: immediate must be an integer in the range [-16, 15] |
| 72 | +qc.selectiine x8, x3, 16, 11 |
| 73 | + |
| 74 | +# CHECK-IMM: :[[@LINE+1]]:27: error: immediate must be an integer in the range [-16, 15] |
| 75 | +qc.selectiine x8, x3, 12, 18 |
| 76 | + |
| 77 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 78 | +qc.selectiine x8, x3, 10, 11 |
| 79 | + |
| 80 | + |
| 81 | +# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction |
| 82 | +qc.selectine 8, x3, x4, 11 |
| 83 | + |
| 84 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 85 | +qc.selectine x8, x3, x4 |
| 86 | + |
| 87 | +# CHECK-IMM: :[[@LINE+1]]:26: error: immediate must be an integer in the range [-16, 15] |
| 88 | +qc.selectine x8, x3, x4, 16 |
| 89 | + |
| 90 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 91 | +qc.selectine x8, x3, x4, 11 |
| 92 | + |
| 93 | + |
| 94 | +# CHECK: :[[@LINE+1]]:15: error: invalid operand for instruction |
| 95 | +qc.selectinei 8, 11, x3, 12 |
| 96 | + |
| 97 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 98 | +qc.selectinei x8, 11, x3 |
| 99 | + |
| 100 | +# CHECK-IMM: :[[@LINE+1]]:19: error: immediate must be an integer in the range [-16, 15] |
| 101 | +qc.selectinei x8, 16, x3, 12 |
| 102 | + |
| 103 | +# CHECK-IMM: :[[@LINE+1]]:27: error: immediate must be an integer in the range [-16, 15] |
| 104 | +qc.selectinei x8, 11, x3, 18 |
| 105 | + |
| 106 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 107 | +qc.selectinei x8, 11, x3, 12 |
| 108 | + |
| 109 | + |
| 110 | +# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction |
| 111 | +qc.selectnei 8, 11, x3, x5 |
| 112 | + |
| 113 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 114 | +qc.selectnei x8, 11, x3 |
| 115 | + |
| 116 | +# CHECK-IMM: :[[@LINE+1]]:18: error: immediate must be an integer in the range [-16, 15] |
| 117 | +qc.selectnei x8, 16, x3, x5 |
| 118 | + |
| 119 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcics' (Qualcomm uC Conditional Select Extension) |
| 120 | +qc.selectnei x8, 11, x3, x5 |
| 121 | + |
0 commit comments