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:
AJR 2025-03-21 14:21:08 -04:00
parent 5954767b0b
commit e3997fb6b2

View File

@ -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: