|
| 1 | +# Xqcilo - Qualcomm uC Large Offset Load Store extension |
| 2 | +# RUN: not llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilo \ |
| 3 | +# RUN: 2>&1 | FileCheck -check-prefixes=CHECK-ENABLED %s |
| 4 | +# RUN: not llvm-mc %s -triple=riscv32 -mattr=-experimental-xqcilo \ |
| 5 | +# RUN: 2>&1 | FileCheck -check-prefixes=CHECK-DISABLED %s |
| 6 | + |
| 7 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 8 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 9 | +qc.e.lb a0, 0xf000 |
| 10 | + |
| 11 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 12 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 13 | +qc.e.lb a0, 0xf000 |
| 14 | + |
| 15 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 16 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 17 | +qc.e.lbu a0, 0xf000 |
| 18 | + |
| 19 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 20 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 21 | +qc.e.lh a0, 0xf000 |
| 22 | + |
| 23 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 24 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 25 | +qc.e.lhu a0, 0xf000 |
| 26 | + |
| 27 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 28 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 29 | +qc.e.lw a0, 0xf000 |
| 30 | + |
| 31 | +# CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction |
| 32 | +# CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction |
| 33 | +qc.e.sb a0, 0xf000, t0 |
| 34 | + |
| 35 | +# CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction |
| 36 | +# CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction |
| 37 | +qc.e.sh a0, 0xf000, t0 |
| 38 | + |
| 39 | +# CHECK-ENABLED: [[@LINE+2]]:21: error: invalid operand for instruction |
| 40 | +# CHECK-DISABLED: [[@LINE+1]]:21: error: invalid operand for instruction |
| 41 | +qc.e.sw a0, 0xf000, t0 |
| 42 | + |
| 43 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 44 | +qc.e.lb a0, undefined |
| 45 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 46 | +qc.e.lbu a0, undefined |
| 47 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 48 | +qc.e.lh a0, undefined |
| 49 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 50 | +qc.e.lhu a0, undefined |
| 51 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 52 | +qc.e.lw a0, undefined |
| 53 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 54 | +qc.e.sb a0, undefined, t0 |
| 55 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 56 | +qc.e.sh a0, undefined, t0 |
| 57 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: instruction requires the following: 'Xqcilo' (Qualcomm uC Large Offset Load Store Extension) |
| 58 | +qc.e.sw a0, undefined, t0 |
| 59 | + |
| 60 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 61 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 62 | +qc.e.sb a0, undefined |
| 63 | + |
| 64 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 65 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 66 | +qc.e.sh a0, undefined |
| 67 | + |
| 68 | +# CHECK-ENABLED: [[@LINE+2]]:1: error: too few operands for instruction |
| 69 | +# CHECK-DISABLED: [[@LINE+1]]:1: error: too few operands for instruction |
| 70 | +qc.e.sw a0, undefined |
0 commit comments