diff options
Diffstat (limited to 'target-i386/op.c')
-rw-r--r-- | target-i386/op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/op.c b/target-i386/op.c index 7c20f524fe..a8cfce271b 100644 --- a/target-i386/op.c +++ b/target-i386/op.c @@ -788,7 +788,7 @@ void OPPROTO op_movzwl_T0_T0(void) void OPPROTO op_movswl_EAX_AX(void) { - EAX = (int16_t)EAX; + EAX = (uint32_t)((int16_t)EAX); } #ifdef TARGET_X86_64 @@ -810,7 +810,7 @@ void OPPROTO op_movsbw_AX_AL(void) void OPPROTO op_movslq_EDX_EAX(void) { - EDX = (int32_t)EAX >> 31; + EDX = (uint32_t)((int32_t)EAX >> 31); } void OPPROTO op_movswl_DX_AX(void) |