Commit 02e4a6ff by Tom de Vries Committed by Tom de Vries

Use maybe_split_mode in nvptx_print_operand

2017-06-06  Tom de Vries  <tom@codesourcery.com>

	* config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.

From-SVN: r248917
parent 86fdda05
2017-06-06 Tom de Vries <tom@codesourcery.com>
* config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
2017-06-06 Jan Hubicka <hubicka@ucw.cz>
PR bootstrap/80978
......
......@@ -2396,10 +2396,9 @@ nvptx_print_operand (FILE *file, rtx x, int code)
if (x_code == SUBREG)
{
mode = GET_MODE (SUBREG_REG (x));
if (mode == TImode)
mode = DImode;
else if (COMPLEX_MODE_P (mode))
mode = GET_MODE_INNER (mode);
machine_mode split = maybe_split_mode (mode);
if (split != VOIDmode)
mode = split;
}
fprintf (file, "%s", nvptx_ptx_type_from_mode (mode, code == 't'));
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment