diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-11-25 17:33:30 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-11-25 17:33:30 +0000 |
commit | df1bddedd4af1edd151461e544d34dfdb8e53b7e (patch) | |
tree | 7a309c439a8163d86a13591c252a064d24284af5 /gcc/config/nvptx/nvptx.md | |
parent | ccb57bb09074b123d908f00820d865491fa656dd (diff) | |
download | gcc-df1bddedd4af1edd151461e544d34dfdb8e53b7e.tar.gz |
nvptx.md (load_arg_reg<mode>): Arg number constraint is 'n'.
* config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
constraint is 'n'.
* config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
number.
(nvptx_write_function_decl): Number args from 0.
(nvptx_declare_function_name): Likewise.
(nvptx_function_incoming_arg): Likewise.
(nvptx_output_call_insn): Correct formatting.
From-SVN: r230889
Diffstat (limited to 'gcc/config/nvptx/nvptx.md')
-rw-r--r-- | gcc/config/nvptx/nvptx.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index c95d147ecf9..0227b8e3c80 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -351,14 +351,14 @@ (define_insn "load_arg_reg<mode>" [(set (match_operand:QHIM 0 "nvptx_register_operand" "=R") - (unspec:QHIM [(match_operand 1 "const_int_operand" "i")] + (unspec:QHIM [(match_operand 1 "const_int_operand" "n")] UNSPEC_ARG_REG))] "" "%.\\tcvt%t0.u32\\t%0, %%ar%1;") (define_insn "load_arg_reg<mode>" [(set (match_operand:SDISDFM 0 "nvptx_register_operand" "=R") - (unspec:SDISDFM [(match_operand 1 "const_int_operand" "i")] + (unspec:SDISDFM [(match_operand 1 "const_int_operand" "n")] UNSPEC_ARG_REG))] "" "%.\\tmov%t0\\t%0, %%ar%1;") |