From: Julian Seward Date: Fri, 18 Nov 2005 22:18:23 +0000 (+0000) Subject: gcc-2.96 build fixes X-Git-Tag: svn/VALGRIND_3_1_1^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90186e51765dc363d5aa415b8e60d22e6b5e1116;p=thirdparty%2Fvalgrind.git gcc-2.96 build fixes git-svn-id: svn://svn.valgrind.org/vex/trunk@1466 --- diff --git a/VEX/priv/guest-ppc32/toIR.c b/VEX/priv/guest-ppc32/toIR.c index 3354c7c5fd..874424cae2 100644 --- a/VEX/priv/guest-ppc32/toIR.c +++ b/VEX/priv/guest-ppc32/toIR.c @@ -1484,11 +1484,13 @@ static IRExpr* /* ::Ity_I32 */ getSPR_masked ( PPC32SPR reg, UInt mask ) guaranteed to be zero. */ static IRExpr* /* ::Ity_I32 */ getSPR_field ( PPC32SPR reg, UInt fld ) { + UInt shft, mask; + vassert( fld < 8 ); vassert( reg < PPC32_SPR_MAX ); - UInt shft = 4*(7-fld); - UInt mask = 0xF<tyenv,src ) == Ity_I32 ); vassert( fld < 8 ); vassert( reg < PPC32_SPR_MAX ); - UInt shft = 4*(7-fld); - UInt mask = 0xF<> 5) & 0x1F); /* Reorder TBR field as per PPC32 p475 */ TBR = ((TBR & 31) << 5) | ((TBR >> 5) & 31); - IRTemp rS = newTemp(Ity_I32); + rS = newTemp(Ity_I32); assign( rS, getIReg(rS_addr) ); if (opc1 != 0x1F || b0 != 0) { @@ -6817,12 +6823,15 @@ static Bool dis_av_fp_convert ( UInt theInstr ) IRTemp vB = newTemp(Ity_V128); IRTemp vScale = newTemp(Ity_V128); IRTemp vInvScale = newTemp(Ity_V128); + + float scale, inv_scale; + assign( vB, getVReg(vB_addr)); /* scale = 2^UIMM, cast to float, reinterpreted as uint */ - float scale = (float)( (unsigned int) 1< sign(1) | expontent(8) | mantissa(23) nan => exponent all ones, mantissa > 0 */