diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-23 14:37:09 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-23 14:37:09 +0000 |
commit | a537037b8e9f4ca6e53e947adc156f023f8acff7 (patch) | |
tree | 4331632ecef669cea30d0d523667291d0a95712e | |
parent | 883f001d2c3672e0674bec71f36a2052734a72cf (diff) | |
download | gcc-a537037b8e9f4ca6e53e947adc156f023f8acff7.tar.gz |
* config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
decls.
(nvptx_declare_function_name): Insert formatting tabs for
consistency.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227104 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 11 |
2 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89e1b5a6cbe..d52be70014e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-08-23 Nathan Sidwell <nathan@acm.org> + + * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg + decls. + (nvptx_declare_function_name): Insert formatting tabs for + consistency. + 2015-08-23 Tom de Vries <tom@codesourcery.com> * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 8f74a14199a..e53249c983c 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -1,4 +1,3 @@ - /* Target code for NVPTX. Copyright (C) 2014-2015 Free Software Foundation, Inc. Contributed by Bernd Schmidt <bernds@codesourcery.com> @@ -413,10 +412,10 @@ walk_args_for_param (FILE *file, tree argtypes, tree args, bool write_copy, i++; if (write_copy) fprintf (file, "\tld.param%s %%ar%d, [%%in_ar%d];\n", - nvptx_ptx_type_from_mode (mode, false), i, i); + nvptx_ptx_type_from_mode (mode, true), i, i); else fprintf (file, "\t.reg%s %%ar%d;\n", - nvptx_ptx_type_from_mode (mode, false), i); + nvptx_ptx_type_from_mode (mode, true), i); } } } @@ -546,7 +545,7 @@ nvptx_declare_function_name (FILE *file, const char *name, const_tree decl) else if (TYPE_MODE (result_type) != VOIDmode) { machine_mode mode = arg_promotion (TYPE_MODE (result_type)); - fprintf (file, ".reg%s %%retval;\n", + fprintf (file, "\t.reg%s %%retval;\n", nvptx_ptx_type_from_mode (mode, false)); } @@ -618,10 +617,10 @@ nvptx_declare_function_name (FILE *file, const char *name, const_tree decl) walk_args_for_param (file, TYPE_ARG_TYPES (fntype), DECL_ARGUMENTS (decl), true, return_in_mem); if (return_in_mem) - fprintf (file, "ld.param.u%d %%ar1, [%%in_ar1];\n", + fprintf (file, "\tld.param.u%d %%ar1, [%%in_ar1];\n", GET_MODE_BITSIZE (Pmode)); if (stdarg_p (fntype)) - fprintf (file, "ld.param.u%d %%argp, [%%in_argp];\n", + fprintf (file, "\tld.param.u%d %%argp, [%%in_argp];\n", GET_MODE_BITSIZE (Pmode)); } |