llvm/llvm/test/CodeGen/LoongArch/lasx/intrinsic-ori-invalid-imm.ll

; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s

declare <32 x i8> @llvm.loongarch.lasx.xvori.b(<32 x i8>, i32)

define <32 x i8> @lasx_xvori_b_lo(<32 x i8> %va) nounwind {
; CHECK: llvm.loongarch.lasx.xvori.b: argument out of range
entry:
  %res = call <32 x i8> @llvm.loongarch.lasx.xvori.b(<32 x i8> %va, i32 -1)
  ret <32 x i8> %res
}

define <32 x i8> @lasx_xvori_b_hi(<32 x i8> %va) nounwind {
; CHECK: llvm.loongarch.lasx.xvori.b: argument out of range
entry:
  %res = call <32 x i8> @llvm.loongarch.lasx.xvori.b(<32 x i8> %va, i32 256)
  ret <32 x i8> %res
}