egcs 980315 bug on powerpc-unknown-linux-gnulibc1

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Tue May 19 04:41:00 GMT 1998


At 19:25 16.05.98 , David Edelsohn wrote:
>>>>>> Franz Sirl writes:
>
>Franz> @@ -4523,7 +4542,7 @@
>Franz> #endif
>Franz> else if (TARGET_NEW_MNEMONICS)
>Franz> {
>Franz> -	  fprintf (file, "\taddis %s,%s,", reg_names[11], reg_names[11]);
>Franz> +	  fprintf (file, "\tlis %s,", reg_names[11]);
>Franz> assemble_name (file, buf);
>Franz> fprintf (file, "@ha\n");
>Franz> fprintf (file, "\tstw %s,4(%s)\n", reg_names[0], reg_names[1]);
>
>	This patch is fine and I have added it to my collection of patches
>to apply when I do my next merge.  I also already have incorporated the
>rs6000.md patch to provide default cases for all switch statements.
>
>	Neither of these really fix a bug, the latter one simply removes
>some warnings and the first one makes the assembly produced more
>readable. 
^^^^^^^^^^

Are you sure? I think there's quite a difference between "addis
regx,regx,value" and "lis regx,value" for regx!=r0 on the PPC.

Bye,
Franz.




More information about the Gcc-bugs mailing list