diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-08-24 12:43:54 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-08-24 12:43:54 +0000 |
commit | 7373d132e1f364cb3ee2a045b6319a866f1e7d86 (patch) | |
tree | d3f61c3c794e3faa957d28a84ecfaff92e01d09b /gcc | |
parent | 7cff0471e445e50f8fcbcc4634deb2df313656e2 (diff) | |
download | gcc-7373d132e1f364cb3ee2a045b6319a866f1e7d86.zip gcc-7373d132e1f364cb3ee2a045b6319a866f1e7d86.tar.gz gcc-7373d132e1f364cb3ee2a045b6319a866f1e7d86.tar.bz2 |
nvptx.c (walk_args_for_param): Revert previous change to nvptx_type_from_mode call.
* 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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4c2267f..7d25402 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index e53249c..2e404ee 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -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); } } } |