@@ -3392,12 +3392,12 @@ static bool interp__builtin_ia32_cvt_vec2mask(InterpState &S, CodePtr OpPC,
33923392 return true ;
33933393}
33943394static bool interp__builtin_ia32_cvtsd2ss (InterpState &S, CodePtr OpPC,
3395- const CallExpr *Call, bool HasMask,
3396- bool HasRounding ) {
3395+ const CallExpr *Call,
3396+ bool HasRoundingMask ) {
33973397 APSInt Rounding, MaskInt;
33983398 Pointer Src, B, A;
33993399
3400- if (HasMask ) {
3400+ if (HasRoundingMask ) {
34013401 assert (Call->getNumArgs () == 5 );
34023402 Rounding = popToAPSInt (S, Call->getArg (4 ));
34033403 MaskInt = popToAPSInt (S, Call->getArg (3 ));
@@ -3424,7 +3424,7 @@ static bool interp__builtin_ia32_cvtsd2ss(InterpState &S, CodePtr OpPC,
34243424 Dst.elem <Floating>(I) = A.elem <Floating>(I);
34253425
34263426 // Convert element 0 from double to float, or use Src if masked off.
3427- if (!HasMask || (MaskInt.getZExtValue () & 0x1 )) {
3427+ if (!HasRoundingMask || (MaskInt.getZExtValue () & 0x1 )) {
34283428 assert (S.getASTContext ().FloatTy == DstVTy->getElementType () &&
34293429 " cvtsd2ss requires float element type in destination vector" );
34303430
@@ -5318,10 +5318,10 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
53185318 return interp__builtin_ia32_cvt_vec2mask (S, OpPC, Call, BuiltinID);
53195319
53205320 case X86::BI__builtin_ia32_cvtsd2ss:
5321- return interp__builtin_ia32_cvtsd2ss (S, OpPC, Call, false , false );
5321+ return interp__builtin_ia32_cvtsd2ss (S, OpPC, Call, false );
53225322
53235323 case X86::BI__builtin_ia32_cvtsd2ss_round_mask:
5324- return interp__builtin_ia32_cvtsd2ss (S, OpPC, Call, true , true );
5324+ return interp__builtin_ia32_cvtsd2ss (S, OpPC, Call, true );
53255325
53265326 case X86::BI__builtin_ia32_cvtpd2ps:
53275327 case X86::BI__builtin_ia32_cvtpd2ps256:
0 commit comments