mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 19:53:06 +00:00
x86_64: assert fixes are ._ for linker_reloc
This commit is contained in:
parent
493f786b38
commit
396003fb06
@ -414,6 +414,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void {
|
||||
=> ._,
|
||||
.linker_reloc => {
|
||||
if (lower.bin_file.options.pic) {
|
||||
assert(inst.data.rx.fixes == ._);
|
||||
const reg = inst.data.rx.r1;
|
||||
const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data;
|
||||
_ = lower.reloc(.{ .linker_reloc = extra });
|
||||
@ -435,6 +436,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void {
|
||||
});
|
||||
},
|
||||
.lea => {
|
||||
assert(inst.data.rx.fixes == ._);
|
||||
const reg = inst.data.rx.r1;
|
||||
const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data;
|
||||
try lower.emit(.none, .mov, &.{
|
||||
@ -443,6 +445,7 @@ fn generic(lower: *Lower, inst: Mir.Inst) Error!void {
|
||||
});
|
||||
},
|
||||
.mov => {
|
||||
assert(inst.data.rx.fixes == ._);
|
||||
const reg = inst.data.rx.r1;
|
||||
const extra = lower.mir.extraData(Mir.Reloc, inst.data.rx.payload).data;
|
||||
_ = lower.reloc(.{ .linker_reloc = extra });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user