Skip to content

Commit

Permalink
Add support for WREG OPASSIGN WREG
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett authored and elazarg committed Oct 28, 2024
1 parent 16e06cf commit defa790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asm_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Instruction parse_instruction(const std::string& line, const std::map<std::strin
if (regex_match(text, m, regex("callx " REG))) {
return Callx{reg(m[1])};
}
if (regex_match(text, m, regex(WREG OPASSIGN REG))) {
if (regex_match(text, m, regex(WREG OPASSIGN WREG))) {
const std::string r = m[1];
return Bin{.op = str_to_binop.at(m[2]), .dst = reg(r), .v = reg(m[3]), .is64 = is64_reg(r), .lddw = false};
}
Expand Down

0 comments on commit defa790

Please sign in to comment.