tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH] arm-asm: Add svc


From: Danny Milosavljevic
Subject: [Tinycc-devel] [PATCH] arm-asm: Add svc
Date: Sat, 23 Jan 2021 14:24:00 +0100

---
 arm-asm.c | 2 ++
 arm-tok.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/arm-asm.c b/arm-asm.c
index e039fa9..f1d776a 100644
--- a/arm-asm.c
+++ b/arm-asm.c
@@ -212,6 +212,7 @@ static void asm_unary_opcode(TCCState *s1, int token)
 
     switch (ARM_INSTRUCTION_GROUP(token)) {
     case TOK_ASM_swieq:
+    case TOK_ASM_svceq:
         if (op.type != OP_IM8)
             expect("immediate 8-bit unsigned integer");
         else {
@@ -1776,6 +1777,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int token)
         asm_nullary_opcode(token);
         return;
     case TOK_ASM_swieq:
+    case TOK_ASM_svceq:
         asm_unary_opcode(s1, token);
         return;
     case TOK_ASM_beq:
diff --git a/arm-tok.h b/arm-tok.h
index 3dc3ea0..bb57f95 100644
--- a/arm-tok.h
+++ b/arm-tok.h
@@ -159,6 +159,7 @@
  DEF_ASM_CONDED(wfe)
  DEF_ASM_CONDED(wfi)
  DEF_ASM_CONDED(swi)
+ DEF_ASM_CONDED(svc)
 
  /* misc */
  DEF_ASM_CONDED(clz)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]