CPU/Recompiler: Warning fix for ARM64/Clang

This commit is contained in:
Stenzek 2024-06-17 17:12:13 +10:00
parent 70d7d4ab67
commit 01fc3258a3
No known key found for this signature in database
1 changed files with 18 additions and 0 deletions

View File

@ -694,6 +694,9 @@ void CodeGenerator::EmitSignExtend(HostReg to_reg, RegSize to_size, HostReg from
m_emit->sxtb(GetHostReg16(to_reg), GetHostReg8(from_reg));
m_emit->and_(GetHostReg16(to_reg), GetHostReg16(to_reg), 0xFFFF);
return;
default:
break;
}
}
break;
@ -708,9 +711,15 @@ void CodeGenerator::EmitSignExtend(HostReg to_reg, RegSize to_size, HostReg from
case RegSize_16:
m_emit->sxth(GetHostReg32(to_reg), GetHostReg16(from_reg));
return;
default:
break;
}
}
break;
default:
break;
}
Panic("Unknown sign-extend combination");
@ -727,6 +736,9 @@ void CodeGenerator::EmitZeroExtend(HostReg to_reg, RegSize to_size, HostReg from
case RegSize_8:
m_emit->and_(GetHostReg16(to_reg), GetHostReg8(from_reg), 0xFF);
return;
default:
break;
}
}
break;
@ -741,9 +753,15 @@ void CodeGenerator::EmitZeroExtend(HostReg to_reg, RegSize to_size, HostReg from
case RegSize_16:
m_emit->and_(GetHostReg32(to_reg), GetHostReg16(from_reg), 0xFFFF);
return;
default:
break;
}
}
break;
default:
break;
}
Panic("Unknown sign-extend combination");