diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h index e205c3d14..4dee9daf9 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h +++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h | |||
| @@ -299,9 +299,9 @@ void EmitFPIsNan16(EmitContext& ctx, Register value); | |||
| 299 | void EmitFPIsNan32(EmitContext& ctx, IR::Inst& inst, ScalarF32 value); | 299 | void EmitFPIsNan32(EmitContext& ctx, IR::Inst& inst, ScalarF32 value); |
| 300 | void EmitFPIsNan64(EmitContext& ctx, IR::Inst& inst, ScalarF64 value); | 300 | void EmitFPIsNan64(EmitContext& ctx, IR::Inst& inst, ScalarF64 value); |
| 301 | void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); | 301 | void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); |
| 302 | void EmitIAdd64(EmitContext& ctx, Register a, Register b); | 302 | void EmitIAdd64(EmitContext& ctx, IR::Inst& inst, Register a, Register b); |
| 303 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); | 303 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); |
| 304 | void EmitISub64(EmitContext& ctx, Register a, Register b); | 304 | void EmitISub64(EmitContext& ctx, IR::Inst& inst, Register a, Register b); |
| 305 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); | 305 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b); |
| 306 | void EmitINeg32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value); | 306 | void EmitINeg32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value); |
| 307 | void EmitINeg64(EmitContext& ctx, IR::Inst& inst, Register value); | 307 | void EmitINeg64(EmitContext& ctx, IR::Inst& inst, Register value); |
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp index f75fcba47..e5aac14c8 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp | |||
| @@ -37,18 +37,16 @@ void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) { | |||
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] Register a, | 40 | void EmitIAdd64(EmitContext& ctx, IR::Inst& inst, Register a, Register b) { |
| 41 | [[maybe_unused]] Register b) { | 41 | ctx.LongAdd("ADD.S64 {}.x,{}.x,{}.x;", inst, a, b); |
| 42 | throw NotImplementedException("GLASM instruction"); | ||
| 43 | } | 42 | } |
| 44 | 43 | ||
| 45 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) { | 44 | void EmitISub32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) { |
| 46 | ctx.Add("SUB.S {}.x,{},{};", inst, a, b); | 45 | ctx.Add("SUB.S {}.x,{},{};", inst, a, b); |
| 47 | } | 46 | } |
| 48 | 47 | ||
| 49 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] Register a, | 48 | void EmitISub64(EmitContext& ctx, IR::Inst& inst, Register a, Register b) { |
| 50 | [[maybe_unused]] Register b) { | 49 | ctx.LongAdd("SUB.S64 {}.x,{}.x,{}.x;", inst, a, b); |
| 51 | throw NotImplementedException("GLASM instruction"); | ||
| 52 | } | 50 | } |
| 53 | 51 | ||
| 54 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) { | 52 | void EmitIMul32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) { |