From 5954767b0b4da0c43f7194c7def4c162fbc8ef78 Mon Sep 17 00:00:00 2001 From: Matthew Daniels <108370479+gm-matthew@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:02:43 +0000 Subject: [PATCH] i960: don't preserve sign bit when shifting integer left (#13507) --- src/devices/cpu/i960/i960.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/i960/i960.cpp b/src/devices/cpu/i960/i960.cpp index 7d31ad031bf..40bda560f40 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, (t2 & 0x80000000) | (t1 >= 32 ? 0 : (t2<= 32 ? 0 : ((int32_t)t2) << t1); break; default: