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
732732 memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like this!
733733 break;
734734 default:
735− memcpy(&ops[2], &ops[1], sizeof(ops[1])); // move ops[2]
736− memcpy(&ops[1], &ops[0], sizeof(ops[0])); // ops[1] was implicit
735+ expect("at least three operands");
736+ return;
737737 }
738738 nb_ops = 3;
739739 }

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