summaryrefslogtreecommitdiff
path: root/cgcode.c
diff options
context:
space:
mode:
authorJohn van Groningen2005-01-13 15:17:20 +0000
committerJohn van Groningen2005-01-13 15:17:20 +0000
commit8146556080c7d290814918cffc67e896edefea79 (patch)
tree9c7f05e8d6e2ff514daf5f92247ee7e30a11b0e9 /cgcode.c
parentuse r_to_i_buffer only for PowerPC and not for IA32 (diff)
add divU for the PowerPC
Diffstat (limited to 'cgcode.c')
-rw-r--r--cgcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgcode.c b/cgcode.c
index 60565cb..f7fae7a 100644
--- a/cgcode.c
+++ b/cgcode.c
@@ -199,7 +199,7 @@ int no_time_profiling;
#endif
#define g_cnot(g1) g_instruction_1(GCNOT,(g1))
#define g_div(g1,g2) g_instruction_2(GDIV,(g1),(g2))
-#ifdef I486
+#if defined (I486) || defined (G_POWER)
# define g_divu(g1,g2) g_instruction_2(GDIVU,(g1),(g2))
#endif
#define g_eor(g1,g2) g_instruction_2(GEOR,(g1),(g2))
@@ -1828,7 +1828,7 @@ void code_divR (VOID)
#endif
}
-#ifdef I486
+#if defined (I486) || defined (G_POWER)
void code_divU (VOID)
{
INSTRUCTION_GRAPH graph_1,graph_2,graph_3;