brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.5 KiB · 8177ada Raw
112 lines · plain
1# RUN: not llvm-mc %s -triple=riscv32 -M no-aliases -show-encoding \2# RUN:     2>&1 | FileCheck -check-prefixes=CHECK-ERR %s3 4.insn qc.eai 128, 0, 0, x0, 05# CHECK-ERR: [[@LINE-1]]:14: error: opcode must be a valid opcode name or an immediate in the range [0, 127]6 7.insn qc.eai 127, 8, 0, x0, 08# CHECK-ERR: [[@LINE-1]]:19: error: immediate must be an integer in the range [0, 7]9 10.insn qc.eai 127, 7, 2, x0, 011# CHECK-ERR: [[@LINE-1]]:22: error: immediate must be an integer in the range [0, 1]12 13.insn qc.eai 127, 7, 1, not_a_reg, 014# CHECK-ERR: [[@LINE-1]]:25: error: invalid operand for instruction15 16.insn qc.eai 127, 7, 1, x31, 0x10000000017# CHECK-ERR: [[@LINE-1]]:30: error: immediate must be an integer in the range [-2147483648, 4294967295]18 19.insn qc.eai 126, 7, 1, x31, 0xFFFFFFFF, extra20# CHECK-ERR: [[@LINE-1]]:42: error: invalid operand for instruction21 22.insn qc.ei 128, 0, 0, x31, x0, 023# CHECK-ERR: [[@LINE-1]]:13: error: opcode must be a valid opcode name or an immediate in the range [0, 127]24 25.insn qc.ei 127, 8, 0, x0, x0, 026# CHECK-ERR: [[@LINE-1]]:18: error: immediate must be an integer in the range [0, 7]27 28.insn qc.ei 127, 7, 4, x0, x0, 029# CHECK-ERR: [[@LINE-1]]:21: error: immediate must be an integer in the range [0, 3]30 31.insn qc.ei 127, 7, 3, not_a_reg, x0, 032# CHECK-ERR: [[@LINE-1]]:24: error: invalid operand for instruction33 34.insn qc.ei 127, 7, 3, x31, not_a_reg, 035# CHECK-ERR: [[@LINE-1]]:29: error: immediate must be an integer in the range [-33554432, 33554431]36 37.insn qc.ei 127, 7, 3, x31, x31, 0x200000038# CHECK-ERR: [[@LINE-1]]:34: error: immediate must be an integer in the range [-33554432, 33554431]39 40.insn qc.ei 127, 7, 3, x31, x31, 0x1000000, extra41# CHECK-ERR: [[@LINE-1]]:45: error: invalid operand for instruction42 43.insn qc.ei 126, 7, 3, x31, 0x2000000(x0)44# CHECK-ERR: [[@LINE-1]]:29: error: immediate must be an integer in the range [-33554432, 33554431]45 46.insn qc.ei 126, 7, 3, x31, 0x1000000(not_a_reg)47# CHECK-ERR: [[@LINE-1]]:39: error: expected register48 49.insn qc.ei 126, 7, 3, x31, 0x1000000(x31), extra50# CHECK-ERR: [[@LINE-1]]:45: error: invalid operand for instruction51 52.insn qc.eb 128, 0, 0, x0, 0, 053# CHECK-ERR: [[@LINE-1]]:13: error: opcode must be a valid opcode name or an immediate in the range [0, 127]54 55.insn qc.eb 127, 8, 0, x0, 0, 056# CHECK-ERR: [[@LINE-1]]:18: error: immediate must be an integer in the range [0, 7]57 58.insn qc.eb 127, 7, 32, x0, 0, 059# CHECK-ERR: [[@LINE-1]]:21: error: immediate must be an integer in the range [0, 31]60 61.insn qc.eb 127, 7, 31, not_a_reg, 0, 062# CHECK-ERR: [[@LINE-1]]:25: error: invalid operand for instruction63 64.insn qc.eb 127, 7, 31, x31, 0x8000, 065# CHECK-ERR: [[@LINE-1]]:30: error: immediate must be an integer in the range [-32768, 32767]66 67.insn qc.eb 127, 7, 31, x31, 0x4000, 0x100068# CHECK-ERR: [[@LINE-1]]:38: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]69 70.insn qc.eb 127, 7, 31, x31, 0x4000, 0x800, extra71# CHECK-ERR: [[@LINE-1]]:45: error: invalid operand for instruction72 73 74.insn qc.ej 128, 0, 0, 0, 075# CHECK-ERR: [[@LINE-1]]:13: error: opcode must be a valid opcode name or an immediate in the range [0, 127]76 77.insn qc.ej 127, 8, 0, 0, 078# CHECK-ERR: [[@LINE-1]]:18: error: immediate must be an integer in the range [0, 7]79 80.insn qc.ej 127, 7, 4, 0, 081# CHECK-ERR: [[@LINE-1]]:21: error: immediate must be an integer in the range [0, 3]82 83.insn qc.ej 127, 7, 3, 32, 084# CHECK-ERR: [[@LINE-1]]:24: error: immediate must be an integer in the range [0, 31]85 86.insn qc.ej 127, 7, 3, 31, 0x10000000087# CHECK-ERR: [[@LINE-1]]:28: error: operand must be a multiple of 2 bytes in the range [-2147483648, 2147483646]88 89.insn qc.ej 127, 7, 3, 31, 0x80000000, extra90# CHECK-ERR: [[@LINE-1]]:40: error: invalid operand for instruction91 92.insn qc.es 128, 0, 0, x0, 0(x0)93# CHECK-ERR: [[@LINE-1]]:13: error: opcode must be a valid opcode name or an immediate in the range [0, 127]94 95.insn qc.es 127, 8, 0, x0, 0(x0)96# CHECK-ERR: [[@LINE-1]]:18: error: immediate must be an integer in the range [0, 7]97 98.insn qc.es 127, 7, 4, x0, 0(x0)99# CHECK-ERR: [[@LINE-1]]:21: error: immediate must be an integer in the range [0, 3]100 101.insn qc.es 127, 7, 3, not_a_reg, 0(x0)102# CHECK-ERR: [[@LINE-1]]:24: error: invalid operand for instruction103 104.insn qc.es 127, 7, 3, x31, 0x2000000(x0)105# CHECK-ERR: [[@LINE-1]]:29: error: immediate must be an integer in the range [-33554432, 33554431]106 107.insn qc.es 127, 7, 3, x31, 0x1000000(not_a_reg)108# CHECK-ERR: [[@LINE-1]]:39: error: expected register109 110.insn qc.es 127, 7, 3, x31, 0x1000000(x31), extra111# CHECK-ERR: [[@LINE-1]]:45: error: invalid operand for instruction112