nvptx.c (walk_args_for_param): Revert previous change to nvptx_type_from_mode call.
authorNathan Sidwell <nathan@acm.org>
Mon, 24 Aug 2015 12:43:54 +0000 (12:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 24 Aug 2015 12:43:54 +0000 (12:43 +0000)
* config/nvptx/nvptx.c (walk_args_for_param): Revert previous
change to nvptx_type_from_mode call. Use arg_promotion for both
split and non-split args.

From-SVN: r227123

gcc/ChangeLog
gcc/config/nvptx/nvptx.c

index 4c2267fd9f8ec7d5139ac6906d17a336f7232f59..7d25402cb228082aff25285a8bb4596a321a0a93 100644 (file)
@@ -1,3 +1,9 @@
+2015-08-24  Nathan Sidwell  <nathan@acm.org>
+
+       * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
+       change to nvptx_type_from_mode call. Use arg_promotion for both
+       split and non-split args.
+
 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
 
        * target-insns.def (movstr): New pattern.
index e53249c983c8c85fe1674ebcfc0ae56b0ae08365..2e404eee4a3643ee5e9682d21518a1b67bd98c64 100644 (file)
@@ -405,17 +405,17 @@ walk_args_for_param (FILE *file, tree argtypes, tree args, bool write_copy,
                mode = DFmode;
 
            }
-         mode = arg_promotion (mode);
        }
+      mode = arg_promotion (mode);
       while (count-- > 0)
        {
          i++;
          if (write_copy)
            fprintf (file, "\tld.param%s %%ar%d, [%%in_ar%d];\n",
-                    nvptx_ptx_type_from_mode (mode, true), i, i);
+                    nvptx_ptx_type_from_mode (mode, false), i, i);
          else
            fprintf (file, "\t.reg%s %%ar%d;\n",
-                    nvptx_ptx_type_from_mode (mode, true), i);
+                    nvptx_ptx_type_from_mode (mode, false), i);
        }
     }
 }