summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-03-29 03:33:52 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4 (patch)
tree67dd8ebbd7d88083cc1e7037be7ab7398394eef3 /src/shader_recompiler/frontend/maxwell
parentshader: Implement I2I SAT (diff)
downloadyuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar.gz
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar.bz2
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar.lz
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar.xz
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.tar.zst
yuzu-73af0d2e0d12d94b1d2dc8c0b448d0769cf111f4.zip
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/integer_to_integer_conversion.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_to_integer_conversion.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_to_integer_conversion.cpp
index 98b7f59f7..2f1a58805 100644
--- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_to_integer_conversion.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_to_integer_conversion.cpp
@@ -74,9 +74,6 @@ void I2I(TranslatorVisitor& v, u64 insn, const IR::U32& src_a) {
BitField<50, 1, u64> sat;
} const i2i{insn};
- if (i2i.cc != 0) {
- throw NotImplementedException("I2I CC");
- }
if (i2i.src_fmt == IntegerWidth::Short && (i2i.selector == 1 || i2i.selector == 3)) {
throw NotImplementedException("16-bit source format incompatible with selector {}",
i2i.selector);
@@ -105,6 +102,10 @@ void I2I(TranslatorVisitor& v, u64 insn, const IR::U32& src_a) {
: ConvertInteger(v.ir, src_values, i2i.dst_fmt)};
v.X(i2i.dest_reg, result);
+ if (i2i.cc != 0) {
+ v.SetZFlag(v.ir.GetZeroFromOp(result));
+ v.SetSFlag(v.ir.GetSignFromOp(result));
+ }
}
} // Anonymous namespace