brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1012 B · c5bcefc Raw
25 lines · plain
1! RUN: %flang_fc1 -flang-experimental-hlfir -emit-llvm %s -fno-ppc-native-vector-element-order -triple ppc64le-unknown-linux -o - | FileCheck --check-prefixes="LLVMIR" %s2! REQUIRES: target=powerpc{{.*}}3 4! CHECK-LABEL: vec_cvf_test_r4r85subroutine vec_cvf_test_r4r8(arg1)6  vector(real(8)), intent(in) :: arg17  vector(real(4)) :: r8  r = vec_cvf(arg1)9 10! LLVMIR: %[[arg:.*]] = load <2 x double>, ptr %{{.*}}, align 1611! LLVMIR: %[[call:.*]] = call contract <4 x float> @llvm.ppc.vsx.xvcvdpsp(<2 x double> %[[arg]])12! LLVMIR: store <4 x float> %[[call]], ptr %{{.*}}, align 1613end subroutine vec_cvf_test_r4r814 15! CHECK-LABEL: vec_cvf_test_r8r416subroutine vec_cvf_test_r8r4(arg1)17  vector(real(4)), intent(in) :: arg118  vector(real(8)) :: r19  r = vec_cvf(arg1)20 21! LLVMIR: %[[arg:.*]] = load <4 x float>, ptr %{{.*}}, align 1622! LLVMIR: %[[r:.*]] = call contract <2 x double> @llvm.ppc.vsx.xvcvspdp(<4 x float> %[[arg]])23! LLVMIR: store <2 x double> %[[r]], ptr %{{.*}}, align 1624end subroutine vec_cvf_test_r8r425