blob: 6108ae1883da5bc522894df6e54b8315c3f7be44 [file] [log] [blame]
; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s
declare void @llvm.loongarch.lasx.xvst(<32 x i8>, ptr, i32)
define void @lasx_xvst_lo(<32 x i8> %va, ptr %p) nounwind {
; CHECK: llvm.loongarch.lasx.xvst: argument out of range
entry:
call void @llvm.loongarch.lasx.xvst(<32 x i8> %va, ptr %p, i32 -2049)
ret void
}
define void @lasx_xvst_hi(<32 x i8> %va, ptr %p) nounwind {
; CHECK: llvm.loongarch.lasx.xvst: argument out of range
entry:
call void @llvm.loongarch.lasx.xvst(<32 x i8> %va, ptr %p, i32 2048)
ret void
}