Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon committed Oct 25, 2024
1 parent 3a8fa99 commit 2525f05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public Object visitBranchCond(LitmusPPCParser.BranchCondContext ctx) {
Label label = programBuilder.getOrCreateLabel(mainThread, ctx.Label().getText());
CmpInstruction cmp = lastCmpInstructionPerThread.put(mainThread, null);
Expression expr = cmp == null ?
// In PPC, when there is no previous comparison instruction,
// In PPC, when there is no previous comparison instruction,
// the value of r0 is used as the branching condition
expressions.makeBooleanCast(programBuilder.getOrNewRegister(mainThread, "r0")) :
expressions.makeIntCmp(cmp.left, ctx.cond().op, cmp.right);
Expand Down

0 comments on commit 2525f05

Please sign in to comment.