stage2: sparc64: Add BPr relocation to performReloc

This commit is contained in:
Koakuma 2022-06-01 19:20:40 +07:00
parent 23150de9c4
commit 97f9bf7e90

View File

@ -3182,6 +3182,7 @@ fn performReloc(self: *Self, inst: Mir.Inst.Index) !void {
const tag = self.mir_instructions.items(.tag)[inst];
switch (tag) {
.bpcc => self.mir_instructions.items(.data)[inst].branch_predict_int.inst = @intCast(Mir.Inst.Index, self.mir_instructions.len),
.bpr => self.mir_instructions.items(.data)[inst].branch_predict_reg.inst = @intCast(Mir.Inst.Index, self.mir_instructions.len),
else => unreachable,
}
}