arm64/reg_alloc: Ban materialization of U1 constants

This commit is contained in:
Merry 2022-07-31 08:50:03 +01:00 committed by merry
parent 73b48448cb
commit 6dfd94f3fb

View file

@ -214,6 +214,7 @@ void RegAlloc::AssertNoMoreUses() const {
template<HostLoc::Kind kind>
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);