diff options
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp index adcc0404b..1befeca91 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp | |||
| @@ -175,43 +175,43 @@ void EmitUClamp32(EmitContext& ctx, IR::Inst& inst, ScalarU32 value, ScalarU32 m | |||
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 177 | void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 178 | ctx.Add("SLT.S {},{},{};", inst, lhs, rhs); | 178 | ctx.Add("SLT.S {}.x,{},{};", inst, lhs, rhs); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void EmitULessThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { | 181 | void EmitULessThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { |
| 182 | ctx.Add("SLT.U {},{},{};", inst, lhs, rhs); | 182 | ctx.Add("SLT.U {}.x,{},{};", inst, lhs, rhs); |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | void EmitIEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 185 | void EmitIEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 186 | ctx.Add("SEQ.S {},{},{};", inst, lhs, rhs); | 186 | ctx.Add("SEQ.S {}.x,{},{};", inst, lhs, rhs); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 189 | void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 190 | ctx.Add("SLE.S {},{},{};", inst, lhs, rhs); | 190 | ctx.Add("SLE.S {}.x,{},{};", inst, lhs, rhs); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { | 193 | void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { |
| 194 | ctx.Add("SLE.U {},{},{};", inst, lhs, rhs); | 194 | ctx.Add("SLE.U {}.x,{},{};", inst, lhs, rhs); |
| 195 | } | 195 | } |
| 196 | 196 | ||
| 197 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 197 | void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 198 | ctx.Add("SGT.S {},{},{};", inst, lhs, rhs); | 198 | ctx.Add("SGT.S {}.x,{},{};", inst, lhs, rhs); |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { | 201 | void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { |
| 202 | ctx.Add("SGT.U {},{},{};", inst, lhs, rhs); | 202 | ctx.Add("SGT.U {}.x,{},{};", inst, lhs, rhs); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 205 | void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 206 | ctx.Add("SNE.U {},{},{};", inst, lhs, rhs); | 206 | ctx.Add("SNE.U {}.x,{},{};", inst, lhs, rhs); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { | 209 | void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { |
| 210 | ctx.Add("SGE.S {},{},{};", inst, lhs, rhs); | 210 | ctx.Add("SGE.S {}.x,{},{};", inst, lhs, rhs); |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { | 213 | void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { |
| 214 | ctx.Add("SGE.U {},{},{};", inst, lhs, rhs); | 214 | ctx.Add("SGE.U {}.x,{},{};", inst, lhs, rhs); |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | } // namespace Shader::Backend::GLASM | 217 | } // namespace Shader::Backend::GLASM |