Commit 624016e8f3

Jacob Young <jacobly0@users.noreply.github.com>
2024-08-16 11:42:50
riscv64: fix incorrect branch target
1 parent 9473d76
Changed files (1)
src
arch
riscv64
src/arch/riscv64/CodeGen.zig
@@ -6594,7 +6594,7 @@ fn genInlineMemset(
         .tag = .beq,
         .data = .{
             .b_type = .{
-                .inst = @intCast(func.mir_instructions.len + 4), // points after the last inst
+                .inst = @intCast(func.mir_instructions.len + 3), // points after the last inst
                 .rs1 = count,
                 .rs2 = .zero,
             },