58 lines · plain
1# RUN: not llvm-mc -triple=riscv32 --mattr=+xcvbi %s 2>&1 \2# RUN: | FileCheck %s --check-prefixes=CHECK-ERROR3 4//===----------------------------------------------------------------------===//5// cv.beqimm6//===----------------------------------------------------------------------===//7 8cv.beqimm 0, 0, 09# CHECK-ERROR: invalid operand for instruction10 11cv.beqimm t0, t1, 012# CHECK-ERROR: immediate must be an integer in the range [-16, 15]13 14cv.beqimm t0, 0, t115# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]16 17cv.beqimm t0, 16, 018# CHECK-ERROR: immediate must be an integer in the range [-16, 15]19 20cv.beqimm t0, -17, 021# CHECK-ERROR: immediate must be an integer in the range [-16, 15]22 23cv.beqimm t0, 0, 124# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]25 26cv.beqimm t0, 0, 409627# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]28 29cv.beqimm t0, 0, -409830# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]31 32//===----------------------------------------------------------------------===//33// cv.bneimm34//===----------------------------------------------------------------------===//35 36cv.bneimm 0, 0, 037# CHECK-ERROR: invalid operand for instruction38 39cv.bneimm t0, t1, 040# CHECK-ERROR: immediate must be an integer in the range [-16, 15]41 42cv.bneimm t0, 0, t143# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]44 45cv.bneimm t0, 16, 046# CHECK-ERROR: immediate must be an integer in the range [-16, 15]47 48cv.bneimm t0, -17, 049# CHECK-ERROR: immediate must be an integer in the range [-16, 15]50 51cv.bneimm t0, 0, 152# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]53 54cv.bneimm t0, 0, 409655# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]56 57cv.bneimm t0, 0, -409858# CHECK-ERROR: immediate must be a multiple of 2 bytes in the range [-4096, 4094]