35 lines · plain
1# RUN: not llvm-mc -triple=riscv32 --mattr=+experimental-zibi %s 2>&1 \2# RUN: | FileCheck %s --check-prefix=CHECK-ERROR3# RUN: not llvm-mc -triple=riscv64 --mattr=+experimental-zibi %s 2>&1 \4# RUN: | FileCheck %s --check-prefix=CHECK-ERROR5beqi a0, 0x0, 0x4006# CHECK-ERROR: [[@LINE-1]]:10: error: immediate must be non-zero in the range [-1, 31]7# CHECK-ERROR-LABEL: beqi a0, 0x0, 0x4008beqi a0, 0x21, 0x4009# CHECK-ERROR: [[@LINE-1]]:10: error: immediate must be non-zero in the range [-1, 31]10# CHECK-ERROR-LABEL: beqi a0, 0x21, 0x40011beqi a2, 0x10, -0x1f00012# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]13# CHECK-ERROR-LABEL: beqi a2, 0x10, -0x1f00014beqi a2, 0x10, 0x100015# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]16# CHECK-ERROR-LABEL: beqi a2, 0x10, 0x100017beqi a2, 0x10, 0x11118# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]19# CHECK-ERROR-LABEL: beqi a2, 0x10, 0x11120bnei a0, 0x0, 0x40021# CHECK-ERROR: [[@LINE-1]]:10: error: immediate must be non-zero in the range [-1, 31]22# CHECK-ERROR-LABEL: bnei a0, 0x0, 0x40023bnei a0, 0x21, 0x40024# CHECK-ERROR: [[@LINE-1]]:10: error: immediate must be non-zero in the range [-1, 31]25# CHECK-ERROR-LABEL: bnei a0, 0x21, 0x40026bnei a2, 0x10, -0x1f00027# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]28# CHECK-ERROR-LABEL: bnei a2, 0x10, -0x1f00029bnei a2, 0x10, 0x100030# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]31# CHECK-ERROR-LABEL: bnei a2, 0x10, 0x100032bnei a2, 0x10, 0x11133# CHECK-ERROR: [[@LINE-1]]:16: error: immediate must be a multiple of 2 bytes in the range [-4096, 4094]34# CHECK-ERROR-LABEL: bnei a2, 0x10, 0x11135