41 lines · plain
1; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu \2; RUN: -verify-machineinstrs < %s | FileCheck %s3 4define <4 x float> @check_vcfsx(<4 x i32> %a) {5entry:6 %0 = tail call <4 x float> @llvm.ppc.altivec.vcfsx(<4 x i32> %a, i32 1)7 ret <4 x float> %08; CHECK-LABEL: check_vcfsx9; CHECK: vcfsx {{[0-9]+}}, {{[0-9]+}}, 110}11 12define <4 x float> @check_vcfux(<4 x i32> %a) {13entry:14 %0 = tail call <4 x float> @llvm.ppc.altivec.vcfux(<4 x i32> %a, i32 1)15 ret <4 x float> %016; CHECK-LABEL: check_vcfux17; CHECK: vcfux {{[0-9]+}}, {{[0-9]+}}, 118}19 20define <4 x i32> @check_vctsxs(<4 x float> %a) {21entry:22 %0 = tail call <4 x i32> @llvm.ppc.altivec.vctsxs(<4 x float> %a, i32 1)23 ret <4 x i32> %024; CHECK-LABEL: check_vctsxs25; CHECK: vctsxs {{[0-9]+}}, {{[0-9]+}}, 126}27 28define <4 x i32> @check_vctuxs(<4 x float> %a) {29entry:30 %0 = tail call <4 x i32> @llvm.ppc.altivec.vctuxs(<4 x float> %a, i32 1)31 ret <4 x i32> %032; CHECK-LABEL: check_vctuxs33; CHECK: vctuxs {{[0-9]+}}, {{[0-9]+}}, 134}35 36declare <4 x float> @llvm.ppc.altivec.vcfsx(<4 x i32>, i32 immarg)37declare <4 x float> @llvm.ppc.altivec.vcfux(<4 x i32>, i32 immarg)38declare <4 x i32> @llvm.ppc.altivec.vctsxs(<4 x float>, i32 immarg)39declare <4 x i32> @llvm.ppc.altivec.vctuxs(<4 x float>, i32 immarg)40 41