| ... | @@ -845,8 +845,7 @@ fn mirLoadMemoryPie(emit: *Emit, inst: Mir.Inst.Index) !void { | ... | @@ -845,8 +845,7 @@ fn mirLoadMemoryPie(emit: *Emit, inst: Mir.Inst.Index) !void { |
| 845 | try emit.writeInstruction(Instruction.adrp(reg.to64(), 0)); | 845 | try emit.writeInstruction(Instruction.adrp(reg.to64(), 0)); |
| 846 | | 846 | |
| 847 | switch (tag) { | 847 | switch (tag) { |
| 848 | .load_memory_got, | 848 | .load_memory_got => { |
| 849 | => { | | |
| 850 | // ldr reg, reg, offset | 849 | // ldr reg, reg, offset |
| 851 | try emit.writeInstruction(Instruction.ldr( | 850 | try emit.writeInstruction(Instruction.ldr( |
| 852 | reg, | 851 | reg, |