| ... | ... | @@ -94,7 +94,7 @@ pub fn emitMir( |
| 94 | 94 | |
| 95 | 95 | .@"or" => try emit.mirArithmetic3Op(inst), |
| 96 | 96 | |
| 97 | | .mulx => @panic("TODO implement sparc64 mulx"), |
| 97 | .mulx => try emit.mirArithmetic3Op(inst), |
| 98 | 98 | |
| 99 | 99 | .nop => try emit.mirNop(), |
| 100 | 100 | |
| ... | ... | @@ -207,6 +207,7 @@ fn mirArithmetic3Op(emit: *Emit, inst: Mir.Inst.Index) !void { |
| 207 | 207 | .lduw => try emit.writeInstruction(Instruction.lduw(i13, rs1, imm, rd)), |
| 208 | 208 | .ldx => try emit.writeInstruction(Instruction.ldx(i13, rs1, imm, rd)), |
| 209 | 209 | .@"or" => try emit.writeInstruction(Instruction.@"or"(i13, rs1, imm, rd)), |
| 210 | .mulx => try emit.writeInstruction(Instruction.mulx(i13, rs1, imm, rd)), |
| 210 | 211 | .save => try emit.writeInstruction(Instruction.save(i13, rs1, imm, rd)), |
| 211 | 212 | .restore => try emit.writeInstruction(Instruction.restore(i13, rs1, imm, rd)), |
| 212 | 213 | .stb => try emit.writeInstruction(Instruction.stb(i13, rs1, imm, rd)), |
| ... | ... | @@ -227,6 +228,7 @@ fn mirArithmetic3Op(emit: *Emit, inst: Mir.Inst.Index) !void { |
| 227 | 228 | .lduw => try emit.writeInstruction(Instruction.lduw(Register, rs1, rs2, rd)), |
| 228 | 229 | .ldx => try emit.writeInstruction(Instruction.ldx(Register, rs1, rs2, rd)), |
| 229 | 230 | .@"or" => try emit.writeInstruction(Instruction.@"or"(Register, rs1, rs2, rd)), |
| 231 | .mulx => try emit.writeInstruction(Instruction.mulx(Register, rs1, rs2, rd)), |
| 230 | 232 | .save => try emit.writeInstruction(Instruction.save(Register, rs1, rs2, rd)), |
| 231 | 233 | .restore => try emit.writeInstruction(Instruction.restore(Register, rs1, rs2, rd)), |
| 232 | 234 | .stb => try emit.writeInstruction(Instruction.stb(Register, rs1, rs2, rd)), |