summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-08 19:21:32 -0400
committerGravatar ameerj2021-07-22 21:51:30 -0400
commit934d3002462e27bcc289c1edb4959896cb23beb0 (patch)
treec28a4192fc0968f2197e9cfdbca6f4864679c56d /src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
parentglasm: Implement more logical ops (diff)
downloadyuzu-934d3002462e27bcc289c1edb4959896cb23beb0.tar.gz
yuzu-934d3002462e27bcc289c1edb4959896cb23beb0.tar.xz
yuzu-934d3002462e27bcc289c1edb4959896cb23beb0.zip
glasm: Use CMP.S for Select32
also fixes ADD and SUB to use U modifier
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
index 1289d950f..579806c38 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
@@ -12,7 +12,7 @@ namespace Shader::Backend::GLASM {
12 12
13void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 13void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
14 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { 14 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) {
15 ctx.Add("ADD {},{},{};", inst, a, b); 15 ctx.Add("ADD.U {},{},{};", inst, a, b);
16} 16}
17 17
18void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 18void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
@@ -22,7 +22,7 @@ void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& in
22 22
23void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 23void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
24 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { 24 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) {
25 ctx.Add("SUB {},{},{};", inst, a, b); 25 ctx.Add("SUB.U {},{},{};", inst, a, b);
26} 26}
27 27
28void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 28void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,