arm-asm: Add svc

This commit is contained in:
Danny Milosavljevic 2021-01-23 14:20:06 +01:00
parent 2e87eb18ab
commit e350058532
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5
2 changed files with 3 additions and 0 deletions

View file

@ -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:

View file

@ -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)