summaryrefslogtreecommitdiff
path: root/cgopt.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 /cgopt.c
parentuse r_to_i_buffer only for PowerPC and not for IA32 (diff)
add divU for the PowerPC
Diffstat (limited to 'cgopt.c')
-rw-r--r--cgopt.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/cgopt.c b/cgopt.c
index 5ef71ce..1753f65 100644
--- a/cgopt.c
+++ b/cgopt.c
@@ -415,7 +415,10 @@ static int get_argument_size (int instruction_code)
IF_G_RISC (case IADDI: case ILSLI:)
IF_G_SPARC (case IADDO: case ISUBO: )
#ifdef I486
- case IDIVI: case IREMI: case IDIVU: case IREMU:
+ case IDIVI: case IREMI: case IREMU:
+#endif
+#if (defined (I486) && !defined (I486_USE_SCRATCH_REGISTER)) || defined (G_POWER)
+ case IDIVU:
#endif
IF_G_POWER ( case IUMULH: )
return 4;
@@ -1511,11 +1514,11 @@ static void store_next_uses (struct instruction *instruction)
#ifndef I486_USE_SCRATCH_REGISTER
case IASR: case ILSL: case ILSR:
case IDIV:
-# ifdef I486
- case IDIVU:
-# endif
case ICMPW:
#endif
+#if (defined (I486) && !defined (I486_USE_SCRATCH_REGISTER)) || defined (G_POWER)
+ case IDIVU:
+#endif
case IEOR: case IFADD:
case IFCMP: case IFDIV: case IFMUL: case IFREM: case IFSUB:
case IMUL: case IOR: case ISUB: case ICMP:
@@ -3797,9 +3800,9 @@ static void allocate_registers (struct basic_block *basic_block)
#ifndef I486_USE_SCRATCH_REGISTER
case IASR: case ILSL: case ILSR:
case IDIV:
-# ifdef I486
+#endif
+#if (defined (I486) && !defined (I486_USE_SCRATCH_REGISTER)) || defined (G_POWER)
case IDIVU:
-# endif
#endif
case IEOR:
case IFADD: case IFCMP: case IFDIV: case IFMUL: case IFREM: case IFSUB: