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
This commit is contained in:
Tom de Vries 2017-06-06 12:24:41 +00:00 committed by Tom de Vries
parent 86fdda0591
commit 02e4a6ff04
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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;