patch [ppc] Complex values are returned differently depending on -mcpu=G5

Fariborz Jahanian fjahanian@apple.com
Fri Sep 23 17:04:00 GMT 2005


Complex values are returned differently depending on -mcpu=G5 (or - 
mpowerpc64).

Test case is: gcc.c-torture/execute/960512-1.c

__complex__
double f ()

In 32-bit mode, the complex value is returned in r3:r4,r5:r6.  In - 
mcpu=G5
mixed mode, the value is returned in r3,r4.  ABI breakage.

Attached patch, dejagnu tested in apple-ppc-darwin's branch (in - 
mcpu=G5 mode) fixes this problem.

OK for FSF mainline?

- fariborz


ChangeLog:

2005-09-23  Fariborz Jahanian <fjahanian@apple.com>

         * config/rs6000/rs6000.c (rs6000_function_value): Parallel  
pattern
         for __complex__ double in -mcpu=G5 mode.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: radar-patch-4263935.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050923/a4c18105/attachment.txt>


More information about the Gcc-patches mailing list