Unified · Split
| @@ -320,8 +320,10 @@ static void parse_operand(TCCState *s1, Operand *op) · 319 unmodified lines | ||
| 320 | 320 | if (tok != ',') { |
| 321 | 321 | op->reg2 = asm_parse_reg(); |
| 322 | 322 | } |
| 323 | − skip(','); | |
| 324 | − op->shift = get_reg_shift(s1); | |
| 323 | + if (tok == ',') { | |
| 324 | + next(); | |
| 325 | + op->shift = get_reg_shift(s1); | |
| 326 | + } | |
| 325 | 327 | } |
| 326 | 328 | skip(')'); |
| 327 | 329 | } |