History

arm-asm: Add error case in asm_multiplication_opcode

Danny Milosavljevic committed 5 years ago

Commit 3a6f3e51 parent e0cb5181 file · +2 −2Browse files

Unified · Split

arm-asm.c+2−2
@@ -732,8 +732,8 @@ static void asm_multiplication_opcode(TCCState *s1, int token) · 731 unmodified lines
732 memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like this!732 memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like this!
733 break;733 break;
734 default:734 default:
735 memcpy(&ops[2], &ops[1], sizeof(ops[1])); // move ops[2]735 expect("at least three operands");
736 memcpy(&ops[1], &ops[0], sizeof(ops[0])); // ops[1] was implicit736 return;
737 }737 }
738 nb_ops = 3;738 nb_ops = 3;
739 }739 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t