Hi,

this patch uses maybe_split_mode in nvptx_print_operand.

Committed as trivial.

Thanks,
- Tom
Use maybe_split_mode in nvptx_print_operand

2017-05-12  Tom de Vries  <t...@codesourcery.com>

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

---
 gcc/config/nvptx/nvptx.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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;

Reply via email to