1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
; 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
}
|