Skip to content

Commit a3f6bd7

Browse files
author
Haochen Gui
committed
rs6000: Expand PROMOTE_MODE marco in rs6000_promote_function_mode
This patch prepares for the patch which disables mode promotion of pseudos on rs6000. gcc/ChangeLog: * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Replace PROMOTE_MODE marco with its content.
1 parent 440c8a0 commit a3f6bd7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcc/config/rs6000/rs6000-call.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6646,7 +6646,9 @@ rs6000_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
66466646
int *punsignedp ATTRIBUTE_UNUSED,
66476647
const_tree, int for_return ATTRIBUTE_UNUSED)
66486648
{
6649-
PROMOTE_MODE (mode, *punsignedp, type);
6649+
if (GET_MODE_CLASS (mode) == MODE_INT
6650+
&& GET_MODE_SIZE (mode) < (TARGET_32BIT ? 4 : 8))
6651+
mode = TARGET_32BIT ? SImode : DImode;
66506652

66516653
return mode;
66526654
}

0 commit comments

Comments
 (0)