summaryrefslogtreecommitdiff
path: root/cgopt.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 /cgopt.c
parentport to gcc on Mac OS X (diff)
implement umulIIL instruction on the PowerPC
Diffstat (limited to 'cgopt.c')
-rw-r--r--cgopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgopt.c b/cgopt.c
index 9c7241b..bd9a5df 100644
--- a/cgopt.c
+++ b/cgopt.c
@@ -211,6 +211,7 @@ IF_G_SPARC (case IADDO: case ISUBO: )
#ifdef I486
case IDIVI: case REMI:
#endif
+IF_G_POWER ( case IUMULH: )
return 4;
case IFADD: case IFCMP: case IFDIV: case IFMUL:
case IFREM: case IFSUB: case IFTST: case IFMOVE:
@@ -1312,6 +1313,7 @@ IF_G_SPARC (case IADDO: case ISUBO:)
#if defined (I486) && defined (FP_STACK_OPTIMIZATIONS)
case IFEXG:
#endif
+IF_G_POWER ( case IUMULH: )
use_parameter (&instruction->instruction_parameters[1]);
use_parameter (&instruction->instruction_parameters[0]);
break;
@@ -3581,6 +3583,7 @@ static void allocate_registers (struct basic_block *basic_block)
case IFADD: case IFCMP: case IFDIV: case IFMUL: case IFREM: case IFSUB:
case IMUL: case IOR: case ISUB:
IF_G_SPARC (case IADDO: case ISUBO:)
+IF_G_POWER ( case IUMULH: )
instruction_use_2 (instruction,USE_DEF);
break;
#ifdef I486_USE_SCRATCH_REGISTER