summaryrefslogtreecommitdiff
path: root/cgcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgcode.h')
-rw-r--r--cgcode.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/cgcode.h b/cgcode.h
index 7b329e8..8b778ca 100644
--- a/cgcode.h
+++ b/cgcode.h
@@ -1,18 +1,28 @@
+#ifndef G_A64
#define g_fhighlow(gh,gl,gf) \
(gh)=g_instruction_2 (GFHIGH,(gf),NULL); \
(gl)=g_instruction_2 (GFLOW,(gf),(gh)); \
(gh)->instruction_parameters[1].p=(gl)
+#endif
extern void initialize_coding (VOID);
extern void show_code (VOID);
extern void show_imports_and_exports (VOID);
extern INSTRUCTION_GRAPH g_load (int offset,int stack);
+#ifdef G_A64
+extern INSTRUCTION_GRAPH g_fp_arg (INSTRUCTION_GRAPH graph_1);
+#else
extern INSTRUCTION_GRAPH g_fjoin (INSTRUCTION_GRAPH graph_1,INSTRUCTION_GRAPH graph_2);
+#endif
extern INSTRUCTION_GRAPH g_fregister (int float_reg);
extern INSTRUCTION_GRAPH g_fstore (int offset,int reg_1,INSTRUCTION_GRAPH graph_1,
+#ifdef G_A64
+ INSTRUCTION_GRAPH graph_2);
+#else
INSTRUCTION_GRAPH graph_2,INSTRUCTION_GRAPH graph_3);
+#endif
extern INSTRUCTION_GRAPH g_fstore_r (int reg_1,INSTRUCTION_GRAPH graph_1);
extern INSTRUCTION_GRAPH g_store (int offset,int reg_1,INSTRUCTION_GRAPH graph_1,INSTRUCTION_GRAPH graph_2);
extern INSTRUCTION_GRAPH g_store_r (int reg_1,INSTRUCTION_GRAPH graph_1);
@@ -22,9 +32,9 @@ extern INSTRUCTION_GRAPH g_instruction_1 (int instruction_code,INSTRUCTION_GRAPH
extern INSTRUCTION_GRAPH g_instruction_2 (int instruction_code,INSTRUCTION_GRAPH graph_1,INSTRUCTION_GRAPH graph_2);
extern INSTRUCTION_GRAPH g_new_node (int,int,int);
-#ifndef g_fhighlow
-# define g_fhigh(g1) g_instruction_1(GFHIGH,(g1))
-# define g_flow(g1) g_instruction_1(GFLOW,(g1))
+#ifdef G_A64
+# define g_fromf(g1) g_instruction_1(GFROMF,(g1))
+# define g_tof(g1) g_instruction_1(GTOF,(g1))
#endif
extern LABEL *enter_label (char *label_name,int label_flags);
@@ -37,7 +47,7 @@ extern struct local_label *local_labels;
extern struct dependency_list *first_dependency;
extern LABEL
*collect_0_label,*collect_1_label,*collect_2_label,
-#ifndef I486
+#if !(defined (I486) && !defined (G_AI64))
*collect_3_label,
#endif
#ifdef I486