From fcd2bd600ece73a006f8b9bbd22215ce39ba7084 Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 24 Jul 2022 16:51:41 +0100 Subject: [PATCH] backend/arm64: Implement Or --- .../backend/arm64/emit_arm64_data_processing.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/dynarmic/backend/arm64/emit_arm64_data_processing.cpp b/src/dynarmic/backend/arm64/emit_arm64_data_processing.cpp index f1ac212c..87b48a6a 100644 --- a/src/dynarmic/backend/arm64/emit_arm64_data_processing.cpp +++ b/src/dynarmic/backend/arm64/emit_arm64_data_processing.cpp @@ -747,18 +747,16 @@ void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR template<> void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) { - (void)code; - (void)ctx; - (void)inst; - ASSERT_FALSE("Unimplemented"); + EmitBitOp<32>( + code, ctx, inst, + [&](auto& result, auto& a, auto& b) { code.ORR(result, a, b); }); } template<> void EmitIR(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) { - (void)code; - (void)ctx; - (void)inst; - ASSERT_FALSE("Unimplemented"); + EmitBitOp<64>( + code, ctx, inst, + [&](auto& result, auto& a, auto& b) { code.ORR(result, a, b); }); } template<>