brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8f8f0ae Raw
39 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.vldrepl.b(ptr, i32)5 6define <16 x i8> @lsx_vldrepl_b(ptr %p, i32 %a) nounwind {7; CHECK: immarg operand has non-immediate parameter8entry:9  %res = call <16 x i8> @llvm.loongarch.lsx.vldrepl.b(ptr %p, i32 %a)10  ret <16 x i8> %res11}12 13declare <8 x i16> @llvm.loongarch.lsx.vldrepl.h(ptr, i32)14 15define <8 x i16> @lsx_vldrepl_h(ptr %p, i32 %a) nounwind {16; CHECK: immarg operand has non-immediate parameter17entry:18  %res = call <8 x i16> @llvm.loongarch.lsx.vldrepl.h(ptr %p, i32 %a)19  ret <8 x i16> %res20}21 22declare <4 x i32> @llvm.loongarch.lsx.vldrepl.w(ptr, i32)23 24define <4 x i32> @lsx_vldrepl_w(ptr %p, i32 %a) nounwind {25; CHECK: immarg operand has non-immediate parameter26entry:27  %res = call <4 x i32> @llvm.loongarch.lsx.vldrepl.w(ptr %p, i32 %a)28  ret <4 x i32> %res29}30 31declare <2 x i64> @llvm.loongarch.lsx.vldrepl.d(ptr, i32)32 33define <2 x i64> @lsx_vldrepl_d(ptr %p, i32 %a) nounwind {34; CHECK: immarg operand has non-immediate parameter35entry:36  %res = call <2 x i64> @llvm.loongarch.lsx.vldrepl.d(ptr %p, i32 %a)37  ret <2 x i64> %res38}39