19 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s3 4declare <16 x i8> @llvm.loongarch.lsx.vbsll.v(<16 x i8>, i32)5 6define <16 x i8> @lsx_vbsll_v_lo(<16 x i8> %va) nounwind {7; CHECK: llvm.loongarch.lsx.vbsll.v: argument out of range8entry:9 %res = call <16 x i8> @llvm.loongarch.lsx.vbsll.v(<16 x i8> %va, i32 -1)10 ret <16 x i8> %res11}12 13define <16 x i8> @lsx_vbsll_v_hi(<16 x i8> %va) nounwind {14; CHECK: llvm.loongarch.lsx.vbsll.v: argument out of range15entry:16 %res = call <16 x i8> @llvm.loongarch.lsx.vbsll.v(<16 x i8> %va, i32 32)17 ret <16 x i8> %res18}19