m68k.c (m68k_libcall_value, [...]): Use macros for register names more.

* config/m68k/m68k.c (m68k_libcall_value,
	m68k_function_value): Use macros for register names more.

From-SVN: r123877
This commit is contained in:
Kazu Hirata 2007-04-16 16:23:09 +00:00 committed by Kazu Hirata
parent 8734935bf8
commit 8d989403d6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-04-16 Kazu Hirata <kazu@codesourcery.com>
* config/m68k/m68k.c (m68k_libcall_value,
m68k_function_value): Use macros for register names more.
2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru> 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR middle-end/28071 PR middle-end/28071

View File

@ -4302,12 +4302,12 @@ m68k_libcall_value (enum machine_mode mode)
case DFmode: case DFmode:
case XFmode: case XFmode:
if (TARGET_68881) if (TARGET_68881)
return gen_rtx_REG (mode, 16); return gen_rtx_REG (mode, FP0_REG);
break; break;
default: default:
break; break;
} }
return gen_rtx_REG (mode, 0); return gen_rtx_REG (mode, D0_REG);
} }
rtx rtx
@ -4321,7 +4321,7 @@ m68k_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
case DFmode: case DFmode:
case XFmode: case XFmode:
if (TARGET_68881) if (TARGET_68881)
return gen_rtx_REG (mode, 16); return gen_rtx_REG (mode, FP0_REG);
break; break;
default: default:
break; break;