fixes
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
7cb703dbd3
commit
4cbe0264c2
3 changed files with 8 additions and 8 deletions
|
|
@ -178,7 +178,7 @@ void EmitToFixed(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst)
|
||||||
} else if constexpr (fsize == 64) {
|
} else if constexpr (fsize == 64) {
|
||||||
return Qto->D2();
|
return Qto->D2();
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return Qto->D2(); //static_assert(false);
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
auto Vfrom = [&] {
|
auto Vfrom = [&] {
|
||||||
|
|
@ -187,7 +187,7 @@ void EmitToFixed(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst)
|
||||||
} else if constexpr (fsize == 64) {
|
} else if constexpr (fsize == 64) {
|
||||||
return Qfrom->D2();
|
return Qfrom->D2();
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return Qfrom->D2(); //static_assert(false);
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -300,7 +300,7 @@ int RegAlloc::GenerateImmediate(const IR::Value& value) {
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return 0;//static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -369,7 +369,7 @@ int RegAlloc::RealizeReadImpl(const IR::Value& value) {
|
||||||
} else if constexpr (required_kind == HostLoc::Kind::Flags) {
|
} else if constexpr (required_kind == HostLoc::Kind::Flags) {
|
||||||
ASSERT_FALSE("A simple read from flags is likely a logic error.");
|
ASSERT_FALSE("A simple read from flags is likely a logic error.");
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return 0;//static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -394,7 +394,7 @@ int RegAlloc::RealizeWriteImpl(const IR::Inst* value) {
|
||||||
flags.SetupLocation(value);
|
flags.SetupLocation(value);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return 0; //static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -415,7 +415,7 @@ int RegAlloc::RealizeReadWriteImpl(const IR::Value& read_value, const IR::Inst*
|
||||||
} else if constexpr (kind == HostLoc::Kind::Flags) {
|
} else if constexpr (kind == HostLoc::Kind::Flags) {
|
||||||
ASSERT_FALSE("Incorrect function for ReadWrite of flags");
|
ASSERT_FALSE("Incorrect function for ReadWrite of flags");
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return write_loc; //static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ u32 RegAlloc::RealizeReadImpl(const IR::Value& value) {
|
||||||
fprs[new_location_index].realized = true;
|
fprs[new_location_index].realized = true;
|
||||||
return new_location_index;
|
return new_location_index;
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return 0; //static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -253,7 +253,7 @@ u32 RegAlloc::RealizeWriteImpl(const IR::Inst* value) {
|
||||||
setup_location(fprs[new_location_index]);
|
setup_location(fprs[new_location_index]);
|
||||||
return new_location_index;
|
return new_location_index;
|
||||||
} else {
|
} else {
|
||||||
//static_assert(false);
|
return 0;//static_assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue