tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] [PATCH 1/2] x86_64-asm.h: support callq for better compat


From: Yao Zi
Subject: [Tinycc-devel] [PATCH 1/2] x86_64-asm.h: support callq for better compatibility
Date: Sun, 29 Sep 2024 07:58:06 +0000

It has the same effect as call.

Signed-off-by: Yao Zi <ziyao@disroot.org>
---
 x86_64-asm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x86_64-asm.h b/x86_64-asm.h
index 339e1dfb..e4655a7a 100644
--- a/x86_64-asm.h
+++ b/x86_64-asm.h
@@ -225,6 +225,8 @@ ALT(DEF_ASM_OP2(shrdw, 0x0fad, 0, OPC_MODRM | OPC_WLX, 
OPT_REGW, OPT_EA | OPT_RE
 
 ALT(DEF_ASM_OP1(call, 0xff, 2, OPC_MODRM, OPT_INDIR))
 ALT(DEF_ASM_OP1(call, 0xe8, 0, 0, OPT_DISP))
+    DEF_ASM_OP1(callq, 0xff, 2, OPC_MODRM, OPT_INDIR)
+ALT(DEF_ASM_OP1(callq, 0xe8, 0, 0, OPT_DISP))
 ALT(DEF_ASM_OP1(jmp, 0xff, 4, OPC_MODRM, OPT_INDIR))
 ALT(DEF_ASM_OP1(jmp, 0xeb, 0, 0, OPT_DISP8))
 
-- 
2.46.0




reply via email to

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