1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[PowerPC] fix tests to be independent of FP undef

llvm-svn: 327210
This commit is contained in:
Sanjay Patel 2018-03-10 16:14:05 +00:00
parent 99343a3814
commit ad67224a59
2 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ vector.body: ; preds = %vector.body.prehead
%5 = bitcast float* %4 to <4 x float>*
%wide.load = load <4 x float>, <4 x float>* %5, align 4
%6 = fpext <4 x float> %wide.load to <4 x ppc_fp128>
%7 = fadd <4 x ppc_fp128> %6, undef
%7 = fadd <4 x ppc_fp128> %6, %6
%8 = fptrunc <4 x ppc_fp128> %7 to <4 x float>
%9 = bitcast float* %4 to <4 x float>*
store <4 x float> %8, <4 x float>* %9, align 4
@ -61,7 +61,7 @@ for.body: ; preds = %for.body.preheader,
%arrayidx.i = getelementptr inbounds float, float* %2, i64 %indvars.iv
%11 = load float, float* %arrayidx.i, align 4
%conv = fpext float %11 to ppc_fp128
%add = fadd ppc_fp128 %conv, undef
%add = fadd ppc_fp128 %conv, %conv
%conv4 = fptrunc ppc_fp128 %add to float
store float %conv4, float* %arrayidx.i, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1

View File

@ -10,9 +10,9 @@ for.body4: ; preds = %for.body4, %entry
%conv.4 = sitofp i32 %inp1 to double
%conv.5 = sitofp i32 %inp1 to double
%mul.4.v.i0.1 = insertelement <2 x double> undef, double %conv.4, i32 0
%mul.4.v.i0.2 = insertelement <2 x double> %mul.4.v.i0.1, double %conv.5, i32 1
%mul.4 = fmul <2 x double> %mul.4.v.i0.2, undef
%add7.4 = fadd <2 x double> undef, %mul.4
%v = insertelement <2 x double> %mul.4.v.i0.1, double %conv.5, i32 1
%vv = fmul <2 x double> %v, %v
%add7.4 = fadd <2 x double> %vv, %vv
store <2 x double> %add7.4, <2 x double>* undef, align 16
br i1 undef, label %for.end, label %for.body4