mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-12-05 15:15:47 +00:00
arm-asm: Add svc
This commit is contained in:
@@ -212,6 +212,7 @@ static void asm_unary_opcode(TCCState *s1, int token)
|
|||||||
|
|
||||||
switch (ARM_INSTRUCTION_GROUP(token)) {
|
switch (ARM_INSTRUCTION_GROUP(token)) {
|
||||||
case TOK_ASM_swieq:
|
case TOK_ASM_swieq:
|
||||||
|
case TOK_ASM_svceq:
|
||||||
if (op.type != OP_IM8)
|
if (op.type != OP_IM8)
|
||||||
expect("immediate 8-bit unsigned integer");
|
expect("immediate 8-bit unsigned integer");
|
||||||
else {
|
else {
|
||||||
@@ -1776,6 +1777,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int token)
|
|||||||
asm_nullary_opcode(token);
|
asm_nullary_opcode(token);
|
||||||
return;
|
return;
|
||||||
case TOK_ASM_swieq:
|
case TOK_ASM_swieq:
|
||||||
|
case TOK_ASM_svceq:
|
||||||
asm_unary_opcode(s1, token);
|
asm_unary_opcode(s1, token);
|
||||||
return;
|
return;
|
||||||
case TOK_ASM_beq:
|
case TOK_ASM_beq:
|
||||||
|
|||||||
Reference in New Issue
Block a user