brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · a7fc595 Raw
46 lines · plain
1; RUN: llc < %s -mtriple powerpc64le-unknown-linux-gnu2; RUN: llc < %s -mcpu=ppc -mtriple powerpc64-unknown-linux-gnu3; RUN: llc < %s -mcpu=ppc -mtriple powerpc-ibm-aix4; RUN: llc < %s -mcpu=ppc -mtriple powerpc64-ibm-aix5 6define void @xvcvdpsp_kill_flag() {7entry:8  %call49 = tail call double @sin()9  %0 = insertelement <2 x double> poison, double %call49, i64 110  %1 = fmul <2 x double> %0, zeroinitializer11  %2 = shufflevector <2 x double> %1, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>12  %3 = insertelement <4 x double> %2, double 0.000000e+00, i64 213  %4 = insertelement <4 x double> %3, double poison, i64 314  %5 = fptrunc <4 x double> %4 to <4 x float>15  %6 = shufflevector <4 x float> %5, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>16  %7 = shufflevector <4 x float> %5, <4 x float> poison, <4 x i32> <i32 2, i32 2, i32 3, i32 3>17  %8 = tail call <4 x float> @llvm.fma.v4f32(<4 x float> %7, <4 x float> <float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00>, <4 x float> zeroinitializer)18  br label %if.end119 20if.end1:                                         ; preds = %entry21  br i1 poison, label %for.cond1.preheader, label %if.then222 23for.cond1.preheader:                            ; preds = %if.end124  br label %for.body2.preheader25 26for.body2.preheader:                            ; preds = %for.cond1.preheader27  br i1 poison, label %for.loopexit, label %for.body328 29for.body3:                                      ; preds = %for.body2.preheader30  %9 = tail call <4 x float> @llvm.ppc.fnmsub.v4f32(<4 x float> zeroinitializer, <4 x float> %6, <4 x float> zeroinitializer)31  %10 = tail call <4 x float> @llvm.fma.v4f32(<4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float> %8, <4 x float> %9)32  %11 = tail call <4 x float> @llvm.fma.v4f32(<4 x float> %10, <4 x float> zeroinitializer, <4 x float> zeroinitializer)33  store <4 x float> %11, ptr poison, align 1634  unreachable35 36for.loopexit:                    ; preds = %for.body2.preheader37  unreachable38 39if.then2:                                       ; preds = %if.end140  ret void41}42 43declare double @sin() local_unnamed_addr #044declare <4 x float> @llvm.fma.v4f32(<4 x float>, <4 x float>, <4 x float>)45declare <4 x float> @llvm.ppc.fnmsub.v4f32(<4 x float>, <4 x float>, <4 x float>)46