From 6dfd94f3fb0b42910bc8c1b260c69a532d801338 Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 31 Jul 2022 08:50:03 +0100 Subject: [PATCH] arm64/reg_alloc: Ban materialization of U1 constants --- src/dynarmic/backend/arm64/reg_alloc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dynarmic/backend/arm64/reg_alloc.cpp b/src/dynarmic/backend/arm64/reg_alloc.cpp index e1776033..686fd2f5 100644 --- a/src/dynarmic/backend/arm64/reg_alloc.cpp +++ b/src/dynarmic/backend/arm64/reg_alloc.cpp @@ -214,6 +214,7 @@ void RegAlloc::AssertNoMoreUses() const { template int RegAlloc::GenerateImmediate(const IR::Value& value) { + ASSERT(value.GetType() != IR::Type::U1); if constexpr (kind == HostLoc::Kind::Gpr) { const int new_location_index = AllocateRegister(gprs, gpr_order); SpillGpr(new_location_index);