brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · eae84ac Raw
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 <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32>, i32)5 6define <8 x i32> @lasx_xvpickve_w(<8 x i32> %va, i32 %c) nounwind {7; CHECK: immarg operand has non-immediate parameter8entry:9  %res = call <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32> %va, i32 %c)10  ret <8 x i32> %res11}12 13declare <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64>, i32)14 15define <4 x i64> @lasx_xvpickve_d(<4 x i64> %va, i32 %c) nounwind {16; CHECK: immarg operand has non-immediate parameter17entry:18  %res = call <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64> %va, i32 %c)19  ret <4 x i64> %res20}21 22declare <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float>, i32)23 24define <8 x float> @lasx_xvpickve_w_f(<8 x float> %va, i32 %c) nounwind {25; CHECK: immarg operand has non-immediate parameter26entry:27  %res = call <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float> %va, i32 %c)28  ret <8 x float> %res29}30 31declare <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double>, i32)32 33define <4 x double> @lasx_xvpickve_d_f(<4 x double> %va, i32 %c) nounwind {34; CHECK: immarg operand has non-immediate parameter35entry:36  %res = call <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double> %va, i32 %c)37  ret <4 x double> %res38}39