mirror of
https://github.com/holub/mame
synced 2025-04-17 22:13:04 +03:00
Revert "i960: don't preserve sign bit when shifting integer left (#13507)"
This reverts commit 5954767b0b
.
This was merged way too hastily based on incomplete information.
This commit is contained in:
parent
5954767b0b
commit
e3997fb6b2
@ -1157,7 +1157,7 @@ void i960_cpu_device::execute_op(uint32_t opcode)
|
||||
m_icount--;
|
||||
t1 = get_1_ri(opcode);
|
||||
t2 = get_2_ri(opcode);
|
||||
set_ri(opcode, t1 >= 32 ? 0 : ((int32_t)t2) << t1);
|
||||
set_ri(opcode, (t2 & 0x80000000) | (t1 >= 32 ? 0 : (t2<<t1) & 0x7fffffff)); // sign is preserved
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user