| ... | @@ -1061,7 +1061,7 @@ pub const Instruction = union(enum) { | ... | @@ -1061,7 +1061,7 @@ pub const Instruction = union(enum) { |
| 1061 | // Tcc instructions abuse the rd field to store the conditionals. | 1061 | // Tcc instructions abuse the rd field to store the conditionals. |
| 1062 | return switch (s2) { | 1062 | return switch (s2) { |
| 1063 | Register => format4a(0b11_1010, ccr, rs1, rs2, @intToEnum(Register, cond)), | 1063 | Register => format4a(0b11_1010, ccr, rs1, rs2, @intToEnum(Register, cond)), |
| 1064 | u7 => format4e(0b00_0100, ccr, rs1, @intToEnum(Register, cond), rs2), | 1064 | u7 => format4e(0b11_1010, ccr, rs1, @intToEnum(Register, cond), rs2), |
| 1065 | else => unreachable, | 1065 | else => unreachable, |
| 1066 | }; | 1066 | }; |
| 1067 | } | 1067 | } |