summaryrefslogtreecommitdiff
path: root/cgcalc.c
diff options
context:
space:
mode:
authorJohn van Groningen2004-04-23 14:20:33 +0000
committerJohn van Groningen2004-04-23 14:20:33 +0000
commit07f581b742ee623014947b9c9ced8eb26c59603d (patch)
tree6f064e8fc905fbeb231c115cf1ceef24f0fd43bf /cgcalc.c
parentport to gcc on Mac OS X (diff)
implement umulIIL instruction on the PowerPC
Diffstat (limited to 'cgcalc.c')
-rw-r--r--cgcalc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cgcalc.c b/cgcalc.c
index d3f06e7..771457b 100644
--- a/cgcalc.c
+++ b/cgcalc.c
@@ -2258,6 +2258,9 @@ void calculate_graph_register_uses (INSTRUCTION_GRAPH graph)
case GOR:
case GMUL:
case GMUL_O:
+#ifdef G_POWER
+ case GUMULH:
+#endif
calculate_dyadic_commutative_data_operator (graph);
return;
case GCMP_EQ:
@@ -2488,6 +2491,9 @@ void count_graph (INSTRUCTION_GRAPH graph)
case GASR:
case GCOPY:
case GBOUNDS:
+#ifdef G_POWER
+ case GUMULH:
+#endif
if (++graph->node_count==1){
count_graph (graph->instruction_parameters[0].p);
count_graph (graph->instruction_parameters[1].p);
@@ -2637,6 +2643,9 @@ void mark_graph_2 (register INSTRUCTION_GRAPH graph)
case GASR:
case GCOPY:
case GBOUNDS:
+#ifdef G_POWER
+ case GUMULH:
+#endif
if (graph->node_mark<2){
graph->node_mark=2;
mark_graph_2 (graph->instruction_parameters[0].p);
@@ -2801,6 +2810,9 @@ void mark_graph_1 (register INSTRUCTION_GRAPH graph)
case GASR:
case GCOPY:
case GBOUNDS:
+#ifdef G_POWER
+ case GUMULH:
+#endif
if (!graph->node_mark){
graph->node_mark=1;
mark_graph_2 (graph->instruction_parameters[0].p);