1 ; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
3 declare <16 x i8> @llvm.loongarch.lsx.vld(i8*, i32)
5 define <16 x i8> @lsx_vld_lo(i8* %p) nounwind {
6 ; CHECK: llvm.loongarch.lsx.vld: argument out of range
8 %res = call <16 x i8> @llvm.loongarch.lsx.vld(i8* %p, i32 -2049)
12 define <16 x i8> @lsx_vld_hi(i8* %p) nounwind {
13 ; CHECK: llvm.loongarch.lsx.vld: argument out of range
15 %res = call <16 x i8> @llvm.loongarch.lsx.vld(i8* %p, i32 2048)