From e3997fb6b2caefaeba23cc6f3d3b67013ece87fb Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 21 Mar 2025 14:21:08 -0400 Subject: Revert "i960: don't preserve sign bit when shifting integer left (#13507)" This reverts commit 5954767b0b4da0c43f7194c7def4c162fbc8ef78. This was merged way too hastily based on incomplete information. --- src/devices/cpu/i960/i960.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/cpu') diff --git a/src/devices/cpu/i960/i960.cpp b/src/devices/cpu/i960/i960.cpp index 40bda560f40..7d31ad031bf 100644 --- a/src/devices/cpu/i960/i960.cpp +++ b/src/devices/cpu/i960/i960.cpp @@ -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<