39 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 <32 x i8> @llvm.loongarch.lasx.xvseqi.b(<32 x i8>, i32)5 6define <32 x i8> @lasx_xvseqi_b(<32 x i8> %va, i32 %b) nounwind {7; CHECK: immarg operand has non-immediate parameter8entry:9 %res = call <32 x i8> @llvm.loongarch.lasx.xvseqi.b(<32 x i8> %va, i32 %b)10 ret <32 x i8> %res11}12 13declare <16 x i16> @llvm.loongarch.lasx.xvseqi.h(<16 x i16>, i32)14 15define <16 x i16> @lasx_xvseqi_h(<16 x i16> %va, i32 %b) nounwind {16; CHECK: immarg operand has non-immediate parameter17entry:18 %res = call <16 x i16> @llvm.loongarch.lasx.xvseqi.h(<16 x i16> %va, i32 %b)19 ret <16 x i16> %res20}21 22declare <8 x i32> @llvm.loongarch.lasx.xvseqi.w(<8 x i32>, i32)23 24define <8 x i32> @lasx_xvseqi_w(<8 x i32> %va, i32 %b) nounwind {25; CHECK: immarg operand has non-immediate parameter26entry:27 %res = call <8 x i32> @llvm.loongarch.lasx.xvseqi.w(<8 x i32> %va, i32 %b)28 ret <8 x i32> %res29}30 31declare <4 x i64> @llvm.loongarch.lasx.xvseqi.d(<4 x i64>, i32)32 33define <4 x i64> @lasx_xvseqi_d(<4 x i64> %va, i32 %b) nounwind {34; CHECK: immarg operand has non-immediate parameter35entry:36 %res = call <4 x i64> @llvm.loongarch.lasx.xvseqi.d(<4 x i64> %va, i32 %b)37 ret <4 x i64> %res38}39