From fde1241ce928d38c2031c827ae0ddee5c6f5af0f Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Thu, 4 Jun 2026 16:36:52 -0700 Subject: Add abs, min, and max instructions --- lang/c/pseudoc.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'lang/c/pseudoc.cpp') diff --git a/lang/c/pseudoc.cpp b/lang/c/pseudoc.cpp index dc37100e..81401b55 100644 --- a/lang/c/pseudoc.cpp +++ b/lang/c/pseudoc.cpp @@ -2490,6 +2490,31 @@ void PseudoCFunction::GetExprTextInternal(const HighLevelILInstruction& instr, H }(); break; + case HLIL_MINS: + case HLIL_MINU: + AppendTwoOperandFunction("min", instr, tokens, settings, false); + if (statement) + tokens.AppendSemicolon(); + break; + + case HLIL_MAXS: + case HLIL_MAXU: + AppendTwoOperandFunction("max", instr, tokens, settings, false); + if (statement) + tokens.AppendSemicolon(); + break; + + case HLIL_ABS: + [&]() { + tokens.Append(OperationToken, "abs"); + tokens.AppendOpenParen(); + GetExprTextInternal(instr.GetSourceExpr(), tokens, settings); + tokens.AppendCloseParen(); + if (statement) + tokens.AppendSemicolon(); + }(); + break; + case HLIL_FLOAT_CONV: [&]() { const auto srcExpr = instr.GetSourceExpr(); -- cgit v1.3.1