summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glasm')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp20
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
177void EmitSLessThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 177void 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
181void EmitULessThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { 181void 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
185void EmitIEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 185void 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
189void EmitSLessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 189void 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
193void EmitULessThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { 193void 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
197void EmitSGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 197void 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
201void EmitUGreaterThan(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { 201void 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
205void EmitINotEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 205void 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
209void EmitSGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarS32 lhs, ScalarS32 rhs) { 209void 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
213void EmitUGreaterThanEqual(EmitContext& ctx, IR::Inst& inst, ScalarU32 lhs, ScalarU32 rhs) { 213void 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