VirtualBox

Changeset 60022 in vbox


Ignore:
Timestamp:
Mar 14, 2016 5:15:51 PM (9 years ago)
Author:
vboxsync
Message:

recompiler: shifting of negative values is undefined (thanks PVS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/translate.c

    r58821 r60022  
    27062706            gen_op_mov_reg_A0(1, R_ESP);
    27072707        else
    2708             gen_stack_update(s, (-2) << s->dflag);
     2708            gen_stack_update(s, -(2 << s->dflag));
    27092709    }
    27102710}
     
    27592759    int i;
    27602760    gen_op_movl_A0_reg(R_ESP);
    2761     gen_op_addl_A0_im(-16 <<  s->dflag);
     2761    gen_op_addl_A0_im(-(16 <<  s->dflag));
    27622762    if (!s->ss32)
    27632763        gen_op_andl_A0_ffff();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette