blob: 9375f9f01a92e603415316d86da8f82e5962e89a [file] [log] [blame]
; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s
declare <16 x i8> @llvm.loongarch.lsx.vld(ptr, i32)
define <16 x i8> @lsx_vld_lo(ptr %p) nounwind {
; CHECK: llvm.loongarch.lsx.vld: argument out of range
entry:
%res = call <16 x i8> @llvm.loongarch.lsx.vld(ptr %p, i32 -2049)
ret <16 x i8> %res
}
define <16 x i8> @lsx_vld_hi(ptr %p) nounwind {
; CHECK: llvm.loongarch.lsx.vld: argument out of range
entry:
%res = call <16 x i8> @llvm.loongarch.lsx.vld(ptr %p, i32 2048)
ret <16 x i8> %res
}