diff mbox

[nvptx,committed] Use maybe_split_mode in nvptx_print_operand

Message ID ac6a540d-709f-2e3c-74ff-ef2e037cf9d8@mentor.com
State New
Headers show

Commit Message

Tom de Vries June 6, 2017, 12:32 p.m. UTC
Hi,

this patch uses maybe_split_mode in nvptx_print_operand.

Committed as trivial.

Thanks,
- Tom
diff mbox

Patch

Use maybe_split_mode in nvptx_print_operand

2017-05-12  Tom de Vries  <tom@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;