aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorFrederic Feret <tommy.planet@free.fr>2009-08-27 09:53:50 +0200
committergrischka <grischka>2009-11-13 18:08:59 +0100
commit526c4645048fa469a2941c86a09f4f851a96eb91 (patch)
tree265c37c212c2083a53f92b89b31b2e2a26f1fdf4 /tcc.h
parent0d768b97130ef2180725c4e585bb482ed0dea105 (diff)
downloadtinycc-526c4645048fa469a2941c86a09f4f851a96eb91.tar.gz
tinycc-526c4645048fa469a2941c86a09f4f851a96eb91.tar.bz2
first support of x86_64 assembly
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/tcc.h b/tcc.h
index 9407f63..8d52491 100644
--- a/tcc.h
+++ b/tcc.h
@@ -118,8 +118,7 @@
#endif
/* define it to include assembler support */
-#if !defined(TCC_TARGET_ARM) && !defined(TCC_TARGET_C67) && \
- !defined(TCC_TARGET_X86_64)
+#if !defined(TCC_TARGET_ARM) && !defined(TCC_TARGET_C67)
#define CONFIG_TCC_ASM
#endif
@@ -675,6 +674,23 @@ struct TCCState {
DEF(TOK_ASM_ ## x ## l, #x "l") \
DEF(TOK_ASM_ ## x, #x)
+#ifdef TCC_TARGET_X86_64
+
+#define DEF_BWLQ(x) \
+ DEF(TOK_ASM_ ## x ## b, #x "b") \
+ DEF(TOK_ASM_ ## x ## w, #x "w") \
+ DEF(TOK_ASM_ ## x ## l, #x "l") \
+ DEF(TOK_ASM_ ## x ## q, #x "q") \
+ DEF(TOK_ASM_ ## x, #x)
+
+#define DEF_WLQ(x) \
+ DEF(TOK_ASM_ ## x ## w, #x "w") \
+ DEF(TOK_ASM_ ## x ## l, #x "l") \
+ DEF(TOK_ASM_ ## x ## q, #x "q") \
+ DEF(TOK_ASM_ ## x, #x)
+
+#endif
+
#define DEF_FP1(x) \
DEF(TOK_ASM_ ## f ## x ## s, "f" #x "s") \
DEF(TOK_ASM_ ## fi ## x ## l, "fi" #x "l") \