mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-24 09:00:49 +02:00
Merge pull request #18 from Sonicadvance1/Interpreter/vushr
Removes undefined behaviour in the VUSHR in interpreter
This commit is contained in:
1 file changed
+1
-1
@@ -2715,7 +2715,7 @@ void InterpreterCore::ExecuteCode(FEXCore::Core::InternalThreadState *Thread) {
|
||||
uint8_t Tmp[16];
|
||||
|
||||
uint8_t Elements = Op->RegisterSize / Op->ElementSize;
|
||||
auto Func = [](auto a, auto b) { return a >> b; };
|
||||
auto Func = [](auto a, auto b) { return b >= (sizeof(a) * 8) ? 0 : a >> b; };
|
||||
|
||||
switch (Op->ElementSize) {
|
||||
DO_VECTOR_OP(1, uint8_t, Func)
|
||||
|
||||
Reference in new issue
Block a user