rs6000.c (rs6000_complex_function_value): Unpack complex numbers <= 32 bits into two registers.

2003-06-04  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
        complex numbers <= 32 bits into two registers.

From-SVN: r67454
This commit is contained in:
Aldy Hernandez 2003-06-04 17:41:06 +00:00 committed by Aldy Hernandez
parent 74eda121a8
commit 165848dad3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-06-04 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
complex numbers <= 32 bits into two registers.
2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alpha.c (print_operand_address): Fix format specifier warnings.

View File

@ -14452,7 +14452,8 @@ rs6000_complex_function_value (enum machine_mode mode)
regno = GP_ARG_RETURN;
/* 32-bit is OK since it'll go in r3/r4. */
if (TARGET_32BIT)
if (TARGET_32BIT
&& GET_MODE_BITSIZE (inner) >= 32)
return gen_rtx_REG (mode, regno);
}