From 473d9b43cb6270def3da8c0dbf4986ab64e0325a Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 11 Jun 2004 11:13:37 +0000 Subject: improve code generation for xor on processors other than the M68000 --- cglin.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cglin.c') diff --git a/cglin.c b/cglin.c index 605951e..b9b9f32 100644 --- a/cglin.c +++ b/cglin.c @@ -2909,6 +2909,7 @@ static void linearize_dyadic_commutative_data_operator (int i_instruction_code,I register_node (graph,reg_1); } +#ifdef M68000 static void linearize_eor_operator (INSTRUCTION_GRAPH graph,ADDRESS *ad_p) { register INSTRUCTION_GRAPH graph_1,graph_2; @@ -2949,6 +2950,7 @@ static void linearize_eor_operator (INSTRUCTION_GRAPH graph,ADDRESS *ad_p) if (*ad_p->ad_count_p>1) register_node (graph,reg_1); } +#endif static int compare_node (INSTRUCTION_GRAPH graph,int i_test_1,int i_test_2) { @@ -7499,7 +7501,11 @@ static void linearize_graph (INSTRUCTION_GRAPH graph,ADDRESS *ad_p) linearize_dyadic_commutative_data_operator (IOR,graph,ad_p); return; case GEOR: +#ifdef M68000 linearize_eor_operator (graph,ad_p); +#else + linearize_dyadic_commutative_data_operator (IEOR,graph,ad_p); +#endif return; case GSUB: linearize_dyadic_non_commutative_operator (ISUB,graph,ad_p); -- cgit v1.2.3