From 07f581b742ee623014947b9c9ced8eb26c59603d Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 23 Apr 2004 14:20:33 +0000 Subject: implement umulIIL instruction on the PowerPC --- cgopt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cgopt.c') 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 -- cgit v1.2.3