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