19 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s3 4declare void @llvm.loongarch.lasx.xvst(<32 x i8>, ptr, i32)5 6define void @lasx_xvst_lo(<32 x i8> %va, ptr %p) nounwind {7; CHECK: llvm.loongarch.lasx.xvst: argument out of range8entry:9 call void @llvm.loongarch.lasx.xvst(<32 x i8> %va, ptr %p, i32 -2049)10 ret void11}12 13define void @lasx_xvst_hi(<32 x i8> %va, ptr %p) nounwind {14; CHECK: llvm.loongarch.lasx.xvst: argument out of range15entry:16 call void @llvm.loongarch.lasx.xvst(<32 x i8> %va, ptr %p, i32 2048)17 ret void18}19