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> 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
PR bootstrap/80978 PR bootstrap/80978
......
...@@ -2396,10 +2396,9 @@ nvptx_print_operand (FILE *file, rtx x, int code) ...@@ -2396,10 +2396,9 @@ nvptx_print_operand (FILE *file, rtx x, int code)
if (x_code == SUBREG) if (x_code == SUBREG)
{ {
mode = GET_MODE (SUBREG_REG (x)); mode = GET_MODE (SUBREG_REG (x));
if (mode == TImode) machine_mode split = maybe_split_mode (mode);
mode = DImode; if (split != VOIDmode)
else if (COMPLEX_MODE_P (mode)) mode = split;
mode = GET_MODE_INNER (mode);
} }
fprintf (file, "%s", nvptx_ptx_type_from_mode (mode, code == 't')); fprintf (file, "%s", nvptx_ptx_type_from_mode (mode, code == 't'));
break; 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