Skip to content

Commit

Permalink
prevent instr fail from being optimized away (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacheco authored Dec 17, 2024
1 parent e2131f5 commit 38d26f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion riscv/src/riscv_gl.asm
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ machine Main with min_degree: MIN_DEGREE, max_degree: {{MAIN_MAX_DEGREE}} {

// ======================= assertions =========================

instr fail { 1 = 0 }
instr fail
link ~> tmp1_col = regs.mload(0, STEP)
{
tmp1_col = 1
}

// Wraps V = val(X) * Y and stores it in register Z,
// where X is a register and Y is a constant factor.
Expand Down

0 comments on commit 38d26f4

Please sign in to comment.