| ... | @@ -304,7 +304,6 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { | ... | @@ -304,7 +304,6 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { |
| 304 | }; | 304 | }; |
| 305 | | 305 | |
| 306 | const is_unsigned = ty.isUnsignedInt(pt.zcu); | 306 | const is_unsigned = ty.isUnsignedInt(pt.zcu); |
| 307 | | | |
| 308 | const less_than: Encoding.Mnemonic = if (is_unsigned) .sltu else .slt; | 307 | const less_than: Encoding.Mnemonic = if (is_unsigned) .sltu else .slt; |
| 309 | | 308 | |
| 310 | switch (class) { | 309 | switch (class) { |
| ... | @@ -338,8 +337,8 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { | ... | @@ -338,8 +337,8 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { |
| 338 | .gt => { | 337 | .gt => { |
| 339 | try lower.emit(less_than, &.{ | 338 | try lower.emit(less_than, &.{ |
| 340 | .{ .reg = rd }, | 339 | .{ .reg = rd }, |
| 341 | .{ .reg = rs1 }, | | |
| 342 | .{ .reg = rs2 }, | 340 | .{ .reg = rs2 }, |
| | 341 | .{ .reg = rs1 }, |
| 343 | }); | 342 | }); |
| 344 | }, | 343 | }, |
| 345 | .gte => { | 344 | .gte => { |
| ... | @@ -348,7 +347,6 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { | ... | @@ -348,7 +347,6 @@ pub fn lowerMir(lower: *Lower, index: Mir.Inst.Index, options: struct { |
| 348 | .{ .reg = rs1 }, | 347 | .{ .reg = rs1 }, |
| 349 | .{ .reg = rs2 }, | 348 | .{ .reg = rs2 }, |
| 350 | }); | 349 | }); |
| 351 | | | |
| 352 | try lower.emit(.xori, &.{ | 350 | try lower.emit(.xori, &.{ |
| 353 | .{ .reg = rd }, | 351 | .{ .reg = rd }, |
| 354 | .{ .reg = rd }, | 352 | .{ .reg = rd }, |