brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.1 KiB · 4a94551 Raw
125 lines · plain
1# Xqciint - Qualcomm uC Interrupts extension2# RUN: not llvm-mc -triple riscv32 -mattr=+experimental-xqciint < %s 2>&1 \3# RUN:     | FileCheck -check-prefixes=CHECK,CHECK-PLUS %s4# RUN: not llvm-mc -triple riscv32 -mattr=-experimental-xqciint < %s 2>&1 \5# RUN:     | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s6 7# CHECK-PLUS: :[[@LINE+2]]:12: error: immediate must be an integer in the range [0, 1023]8# CHECK-MINUS: :[[@LINE+1]]:12: error: invalid operand for instruction9qc.setinti 102510 11# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction12qc.setinti 11, 1213 14# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction15qc.setinti16 17# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)18qc.setinti   1019 20 21# CHECK-PLUS: :[[@LINE+1]]:12: error: immediate must be an integer in the range [0, 1023]22qc.clrinti 200023 24# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction25qc.clrinti 22, x426 27# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction28qc.clrinti29 30# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)31qc.clrinti 832 33 34# CHECK-PLUS: :[[@LINE+2]]:13: error: register must be a GPR excluding zero (x0)35# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction36qc.c.clrint 2237 38# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction39qc.c.clrint40 41# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)42qc.c.clrint x843 44 45# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction46qc.c.di 2247 48# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)49qc.c.di50 51 52# CHECK-PLUS: :[[@LINE+2]]:10: error: register must be a GPR excluding zero (x0)53# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction54qc.c.dir 2255 56# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction57qc.c.dir58 59# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)60qc.c.dir x861 62 63# CHECK: :[[@LINE+1]]:9: error: invalid operand for instruction64qc.c.ei 2265 66# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)67qc.c.ei68 69 70# CHECK-PLUS: :[[@LINE+2]]:10: error: register must be a GPR excluding zero (x0)71# CHECK-MINUS: :[[@LINE+1]]:10: error: invalid operand for instruction72qc.c.eir 2273 74# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction75qc.c.eir76 77# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)78qc.c.eir x879 80 81# CHECK: :[[@LINE+1]]:19: error: invalid operand for instruction82qc.c.mienter.nest 2283 84# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)85qc.c.mienter.nest86 87 88# CHECK: :[[@LINE+1]]:14: error: invalid operand for instruction89qc.c.mienter 2290 91# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)92qc.c.mienter93 94 95# CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction96qc.c.mileaveret 2297 98# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)99qc.c.mileaveret100 101 102# CHECK-PLUS: :[[@LINE+2]]:13: error: register must be a GPR excluding zero (x0)103# CHECK-MINUS: :[[@LINE+1]]:13: error: invalid operand for instruction104qc.c.setint 22105 106# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction107qc.c.setint108 109# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)110qc.c.setint x8111 112 113# CHECK: :[[@LINE+1]]:11: error: invalid operand for instruction114qc.c.mret x8115 116# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)117qc.c.mret118 119 120# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction121qc.c.mnret 10122 123# CHECK-EXT: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqciint' (Qualcomm uC Interrupts Extension)124qc.c.mnret125