67 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_lo(<8 x i32> %va) nounwind {7; CHECK: llvm.loongarch.lasx.xvpickve.w: argument out of range8entry:9 %res = call <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32> %va, i32 -1)10 ret <8 x i32> %res11}12 13define <8 x i32> @lasx_xvpickve_w_hi(<8 x i32> %va) nounwind {14; CHECK: llvm.loongarch.lasx.xvpickve.w: argument out of range15entry:16 %res = call <8 x i32> @llvm.loongarch.lasx.xvpickve.w(<8 x i32> %va, i32 8)17 ret <8 x i32> %res18}19 20declare <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64>, i32)21 22define <4 x i64> @lasx_xvpickve_d_lo(<4 x i64> %va) nounwind {23; CHECK: llvm.loongarch.lasx.xvpickve.d: argument out of range24entry:25 %res = call <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64> %va, i32 -1)26 ret <4 x i64> %res27}28 29define <4 x i64> @lasx_xvpickve_d_hi(<4 x i64> %va) nounwind {30; CHECK: llvm.loongarch.lasx.xvpickve.d: argument out of range31entry:32 %res = call <4 x i64> @llvm.loongarch.lasx.xvpickve.d(<4 x i64> %va, i32 4)33 ret <4 x i64> %res34}35 36declare <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float>, i32)37 38define <8 x float> @lasx_xvpickve_w_f_lo(<8 x float> %va) nounwind {39; CHECK: llvm.loongarch.lasx.xvpickve.w.f: argument out of range40entry:41 %res = call <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float> %va, i32 -1)42 ret <8 x float> %res43}44 45define <8 x float> @lasx_xvpickve_w_f_hi(<8 x float> %va) nounwind {46; CHECK: llvm.loongarch.lasx.xvpickve.w.f: argument out of range47entry:48 %res = call <8 x float> @llvm.loongarch.lasx.xvpickve.w.f(<8 x float> %va, i32 8)49 ret <8 x float> %res50}51 52declare <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double>, i32)53 54define <4 x double> @lasx_xvpickve_d_f_lo(<4 x double> %va) nounwind {55; CHECK: llvm.loongarch.lasx.xvpickve.d.f: argument out of range56entry:57 %res = call <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double> %va, i32 -1)58 ret <4 x double> %res59}60 61define <4 x double> @lasx_xvpickve_d_f_hi(<4 x double> %va) nounwind {62; CHECK: llvm.loongarch.lasx.xvpickve.d.f: argument out of range63entry:64 %res = call <4 x double> @llvm.loongarch.lasx.xvpickve.d.f(<4 x double> %va, i32 4)65 ret <4 x double> %res66}67