arm-asm: Add svc
This commit is contained in:
parent
2e87eb18ab
commit
e350058532
2 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
|
@ -159,6 +159,7 @@
|
||||||
DEF_ASM_CONDED(wfe)
|
DEF_ASM_CONDED(wfe)
|
||||||
DEF_ASM_CONDED(wfi)
|
DEF_ASM_CONDED(wfi)
|
||||||
DEF_ASM_CONDED(swi)
|
DEF_ASM_CONDED(swi)
|
||||||
|
DEF_ASM_CONDED(svc)
|
||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
DEF_ASM_CONDED(clz)
|
DEF_ASM_CONDED(clz)
|
||||||
|
|
Loading…
Reference in a new issue