summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-02 08:10:15 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commit4f8b68fb0424ccd273107e45709acb6a5c35cecb (patch)
treeec1523be2e5bff7297dfc2245dc6b6dae55eac13
parentglasm: Use ARB_derivative_control conditionally (diff)
downloadyuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar.gz
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar.bz2
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar.lz
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar.xz
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.tar.zst
yuzu-4f8b68fb0424ccd273107e45709acb6a5c35cecb.zip
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/integer_floating_point_conversion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_floating_point_conversion.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_floating_point_conversion.cpp
index d6224d5cc..e0e157275 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_floating_point_conversion.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_floating_point_conversion.cpp
@@ -114,6 +114,8 @@ void I2F(TranslatorVisitor& v, u64 insn, IR::U32U64 src) {
IR::U1 is_least;
if (src_bitsize == 64) {
is_least = v.ir.IEqual(src, v.ir.Imm64(std::numeric_limits<s64>::min()));
+ } else if (src_bitsize == 32) {
+ is_least = v.ir.IEqual(src, v.ir.Imm32(std::numeric_limits<s32>::min()));
} else {
const IR::U32 least_value{v.ir.Imm32(-(1 << (src_bitsize - 1)))};
is_least = v.ir.IEqual(src, least_value);