| ... | @@ -8442,6 +8442,10 @@ fn failSymbol(func: *Func, comptime format: []const u8, args: anytype) InnerErro | ... | @@ -8442,6 +8442,10 @@ fn failSymbol(func: *Func, comptime format: []const u8, args: anytype) InnerErro |
| 8442 | } | 8442 | } |
| 8443 | | 8443 | |
| 8444 | fn parseRegName(name: []const u8) ?Register { | 8444 | fn parseRegName(name: []const u8) ?Register { |
| | 8445 | // The `fp` alias for `s0` is awkward to fit into the current `Register` scheme, so for now we |
| | 8446 | // special-case it here. |
| | 8447 | if (std.mem.eql(u8, name, "fp")) return .s0; |
| | 8448 | |
| 8445 | return std.meta.stringToEnum(Register, name); | 8449 | return std.meta.stringToEnum(Register, name); |
| 8446 | } | 8450 | } |
| 8447 | | 8451 | |