[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [PATCH 5/9] arm-asm: Add error case in asm_multiplication
From: |
Danny Milosavljevic |
Subject: |
[Tinycc-devel] [PATCH 5/9] arm-asm: Add error case in asm_multiplication_opcode |
Date: |
Mon, 28 Dec 2020 02:44:09 +0100 |
---
arm-asm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arm-asm.c b/arm-asm.c
index fd6275a..847a4f3 100644
--- a/arm-asm.c
+++ b/arm-asm.c
@@ -732,8 +732,8 @@ static void asm_multiplication_opcode(TCCState *s1, int
token)
memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like
this!
break;
default:
- memcpy(&ops[2], &ops[1], sizeof(ops[1])); // move ops[2]
- memcpy(&ops[1], &ops[0], sizeof(ops[0])); // ops[1] was implicit
+ expect("at least three operands");
+ return;
}
nb_ops = 3;
}
- [Tinycc-devel] [PATCH 0/9] Improve ARM inline assembler, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 4/9] arm-asm: Warn if regset registers are not specified in ascending order, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 2/9] arm-asm: For data processing instructions, support shifts and rotations., Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 3/9] arm-asm: Support rotation for sxtb, sxth, uxtb, uxth, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 7/9] arm-asm: Print a warning if asm_binary_opcode is used with SP as operand, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 1/9] arm-asm: Add lsl, lsr, asr, ror, rrx, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 5/9] arm-asm: Add error case in asm_multiplication_opcode,
Danny Milosavljevic <=
- [Tinycc-devel] [PATCH 9/9] arm-asm: Raise error if asm_data_processing_opcode and asm_shift_opcode try to use PC for register-controlled shifts, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 6/9] arm-asm: Raise an error if asm_binary_opcode is used with PC as operand, Danny Milosavljevic, 2020/12/27
- [Tinycc-devel] [PATCH 8/9] arm-asm: Raise error if more than two operands are specified on mov, mvn, cmp, cmn, tst, teq, Danny Milosavljevic, 2020/12/27
- Re: [Tinycc-devel] [PATCH 0/9] Improve ARM inline assembler, Danny Milosavljevic, 2020/12/27