|
| 1 | +# Xqcisync - Qualcomm uC Synchronization And Delay Extension |
| 2 | +# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqcisync < %s 2>&1 \ |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-PLUS,CHECK-IMM %s |
| 4 | +# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqcisync < %s 2>&1 \ |
| 5 | +# RUN: | FileCheck -check-prefixes=CHECK,CHECK-MINUS,CHECK-EXT %s |
| 6 | + |
| 7 | +# CHECK-PLUS: :[[@LINE+2]]:12: error: immediate must be an integer in the range [1, 31] |
| 8 | +# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 9 | +qc.c.delay 0 |
| 10 | + |
| 11 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 12 | +qc.c.delay |
| 13 | + |
| 14 | +# CHECK-IMM: :[[@LINE+1]]:12: error: immediate must be an integer in the range [1, 31] |
| 15 | +qc.c.delay 32 |
| 16 | + |
| 17 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 18 | +qc.c.delay 5 |
| 19 | + |
| 20 | +# CHECK-PLUS: :[[@LINE+2]]:11: error: immediate must be an integer in the range [0, 7] |
| 21 | +# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction |
| 22 | +qc.c.sync 8 |
| 23 | + |
| 24 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 25 | +qc.c.sync |
| 26 | + |
| 27 | +# CHECK-IMM: :[[@LINE+1]]:11: error: immediate must be an integer in the range [0, 7] |
| 28 | +qc.c.sync -1 |
| 29 | + |
| 30 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 31 | +qc.c.sync 3 |
| 32 | + |
| 33 | +# CHECK-PLUS: :[[@LINE+2]]:12: error: immediate must be an integer in the range [0, 7] |
| 34 | +# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction |
| 35 | +qc.c.syncr 10 |
| 36 | + |
| 37 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 38 | +qc.c.syncr |
| 39 | + |
| 40 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 41 | +qc.c.syncr 3 |
| 42 | + |
| 43 | +# CHECK-PLUS: :[[@LINE+2]]:13: error: immediate must be an integer in the range [0, 7] |
| 44 | +# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 45 | +qc.c.syncwf 8 |
| 46 | + |
| 47 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 48 | +qc.c.syncwf |
| 49 | + |
| 50 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 51 | +qc.c.syncwf 5 |
| 52 | + |
| 53 | +# CHECK-PLUS: :[[@LINE+2]]:13: error: immediate must be an integer in the range [0, 7] |
| 54 | +# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction |
| 55 | +qc.c.syncwl 8 |
| 56 | + |
| 57 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 58 | +qc.c.syncwl |
| 59 | + |
| 60 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 61 | +qc.c.syncwl 7 |
| 62 | + |
| 63 | +# CHECK-PLUS: :[[@LINE+2]]:9: error: immediate must be an integer in the range [0, 31] |
| 64 | +# CHECK-MINUS: :[[@LINE+1]]:9: error: invalid operand for instruction |
| 65 | +qc.sync 32 |
| 66 | + |
| 67 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 68 | +qc.sync |
| 69 | + |
| 70 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 71 | +qc.sync 10 |
| 72 | + |
| 73 | +# CHECK-PLUS: :[[@LINE+2]]:10: error: immediate must be an integer in the range [0, 31] |
| 74 | +# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction |
| 75 | +qc.syncr -1 |
| 76 | + |
| 77 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 78 | +qc.syncr |
| 79 | + |
| 80 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 81 | +qc.syncr 10 |
| 82 | + |
| 83 | +# CHECK-PLUS: :[[@LINE+2]]:11: error: immediate must be an integer in the range [0, 31] |
| 84 | +# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction |
| 85 | +qc.syncwf 33 |
| 86 | + |
| 87 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 88 | +qc.syncwf |
| 89 | + |
| 90 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 91 | +qc.syncwf 10 |
| 92 | + |
| 93 | +# CHECK-PLUS: :[[@LINE+2]]:11: error: immediate must be an integer in the range [0, 31] |
| 94 | +# CHECK-MINUS: :[[@LINE+1]]:11: error: invalid operand for instruction |
| 95 | +qc.syncwl -1 |
| 96 | + |
| 97 | +# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction |
| 98 | +qc.syncwl |
| 99 | + |
| 100 | +# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcisync' (Qualcomm uC Synchronization And Delay Extension) |
| 101 | +qc.syncwl 10 |
0 commit comments