diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-06-06 12:24:41 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-06-06 12:24:41 +0000 |
commit | 02e4a6ff04da7ce6b7289541abbdf96fd00d1d15 (patch) | |
tree | 723bdd46f5860b06fd0de0e219ac0c0eb3cf45cb /gcc | |
parent | 86fdda05914d35026362dbf8bee8520d7e549525 (diff) | |
download | gcc-02e4a6ff04da7ce6b7289541abbdf96fd00d1d15.zip gcc-02e4a6ff04da7ce6b7289541abbdf96fd00d1d15.tar.gz gcc-02e4a6ff04da7ce6b7289541abbdf96fd00d1d15.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e0542e..aeeadfb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> PR bootstrap/80978 diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 4c35c16..75ecc94 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -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; |