57 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 <8 x i16> @llvm.loongarch.lsx.vsllwil.h.b(<16 x i8>, i32)5 6define <8 x i16> @lsx_vsllwil_h_b(<16 x i8> %va, i32 %b) nounwind {7; CHECK: immarg operand has non-immediate parameter8entry:9 %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.h.b(<16 x i8> %va, i32 %b)10 ret <8 x i16> %res11}12 13declare <4 x i32> @llvm.loongarch.lsx.vsllwil.w.h(<8 x i16>, i32)14 15define <4 x i32> @lsx_vsllwil_w_h(<8 x i16> %va, i32 %b) nounwind {16; CHECK: immarg operand has non-immediate parameter17entry:18 %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.w.h(<8 x i16> %va, i32 %b)19 ret <4 x i32> %res20}21 22declare <2 x i64> @llvm.loongarch.lsx.vsllwil.d.w(<4 x i32>, i32)23 24define <2 x i64> @lsx_vsllwil_d_w(<4 x i32> %va, i32 %b) nounwind {25; CHECK: immarg operand has non-immediate parameter26entry:27 %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.d.w(<4 x i32> %va, i32 %b)28 ret <2 x i64> %res29}30 31declare <8 x i16> @llvm.loongarch.lsx.vsllwil.hu.bu(<16 x i8>, i32)32 33define <8 x i16> @lsx_vsllwil_hu_bu(<16 x i8> %va, i32 %b) nounwind {34; CHECK: immarg operand has non-immediate parameter35entry:36 %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.hu.bu(<16 x i8> %va, i32 %b)37 ret <8 x i16> %res38}39 40declare <4 x i32> @llvm.loongarch.lsx.vsllwil.wu.hu(<8 x i16>, i32)41 42define <4 x i32> @lsx_vsllwil_wu_hu(<8 x i16> %va, i32 %b) nounwind {43; CHECK: immarg operand has non-immediate parameter44entry:45 %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.wu.hu(<8 x i16> %va, i32 %b)46 ret <4 x i32> %res47}48 49declare <2 x i64> @llvm.loongarch.lsx.vsllwil.du.wu(<4 x i32>, i32)50 51define <2 x i64> @lsx_vsllwil_du_wu(<4 x i32> %va, i32 %b) nounwind {52; CHECK: immarg operand has non-immediate parameter53entry:54 %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.du.wu(<4 x i32> %va, i32 %b)55 ret <2 x i64> %res56}57