blob: 8ff1a23c58d07d28e7beada49882446ed8a740ce [file] [edit]
; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s 2>&1 | FileCheck %s
; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
declare <16 x i8> @llvm.loongarch.lsx.vbsrl.v(<16 x i8>, i32)
define <16 x i8> @lsx_vbsrl_v_lo(<16 x i8> %va) nounwind {
; CHECK: llvm.loongarch.lsx.vbsrl.v: argument out of range
entry:
%res = call <16 x i8> @llvm.loongarch.lsx.vbsrl.v(<16 x i8> %va, i32 -1)
ret <16 x i8> %res
}
define <16 x i8> @lsx_vbsrl_v_hi(<16 x i8> %va) nounwind {
; CHECK: llvm.loongarch.lsx.vbsrl.v: argument out of range
entry:
%res = call <16 x i8> @llvm.loongarch.lsx.vbsrl.v(<16 x i8> %va, i32 32)
ret <16 x i8> %res
}