mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
glasm: Implement BFE.CC
This commit is contained in:
parent
2e0d56da7e
commit
98ed8ff103
1 changed files with 8 additions and 0 deletions
|
@ -122,6 +122,14 @@ void EmitBitFieldUExtract(EmitContext& ctx, IR::Inst& inst, ScalarU32 base, Scal
|
||||||
"BFE.U {},RC,{};",
|
"BFE.U {},RC,{};",
|
||||||
count, offset, ret, base);
|
count, offset, ret, base);
|
||||||
}
|
}
|
||||||
|
if (const auto zero = inst.GetAssociatedPseudoOperation(IR::Opcode::GetZeroFromOp)) {
|
||||||
|
ctx.Add("SEQ.S {},{},0;", *zero, ret);
|
||||||
|
zero->Invalidate();
|
||||||
|
}
|
||||||
|
if (const auto sign = inst.GetAssociatedPseudoOperation(IR::Opcode::GetSignFromOp)) {
|
||||||
|
ctx.Add("SLT.S {},{},0;", *sign, ret);
|
||||||
|
sign->Invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitBitReverse32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value) {
|
void EmitBitReverse32(EmitContext& ctx, IR::Inst& inst, ScalarS32 value) {
|
||||||
|
|
Loading…
Reference in a new issue