diff options
author | Tom de Vries <tdevries@suse.de> | 2019-06-16 22:26:27 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2019-06-16 22:26:27 +0000 |
commit | bbd54be5a73dc82548f7fc3d17542caed679fab8 (patch) | |
tree | 6b2254ef7ca4ec8643c4a553cbfdbbb8351956e7 /gcc | |
parent | c669ebe7c3f43e873c495c598df0a90fc4c1bed7 (diff) | |
download | gcc-bbd54be5a73dc82548f7fc3d17542caed679fab8.zip gcc-bbd54be5a73dc82548f7fc3d17542caed679fab8.tar.gz gcc-bbd54be5a73dc82548f7fc3d17542caed679fab8.tar.bz2 |
[nvptx] Fix some missing mode warnings in nvptx.md
Fix these warnings:
...
gcc/config/nvptx/nvptx.md:748:1: warning: operand 0 missing mode?
gcc/config/nvptx/nvptx.md:757:1: warning: operand 1 missing mode?
gcc/config/nvptx/nvptx.md:1514:1: warning: source missing a mode?
...
Build and reg-tested on x86_64 with nvptx accelerator.
2019-06-17 Tom de Vries <tdevries@suse.de>
* config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
(define_insn "call_insn_<mode>"): ... this. Use P iterator on
match_operand 0.
(define_insn "call_value_insn"): Rename to ...
(define_insn "call_value_insn_<mode>"): this. Use P iterator on
match_operand 0.
(define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
DI.
From-SVN: r272365
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.md | 10 |
2 files changed, 16 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 369ca4b..6b893fd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2019-06-17 Tom de Vries <tdevries@suse.de> + + * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ... + (define_insn "call_insn_<mode>"): ... this. Use P iterator on + match_operand 0. + (define_insn "call_value_insn"): Rename to ... + (define_insn "call_value_insn_<mode>"): this. Use P iterator on + match_operand 0. + (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to + DI. + 2019-06-16 John David Anglin <danglin@gcc.gnu.org> PR middle-end/64242 diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index 1a090a47..3ed5296 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -745,19 +745,19 @@ ;; Calls -(define_insn "call_insn" +(define_insn "call_insn_<mode>" [(match_parallel 2 "call_operation" - [(call (mem:QI (match_operand 0 "call_insn_operand" "Rs")) + [(call (mem:QI (match_operand:P 0 "call_insn_operand" "Rs")) (match_operand 1))])] "" { return nvptx_output_call_insn (insn, NULL_RTX, operands[0]); }) -(define_insn "call_value_insn" +(define_insn "call_value_insn_<mode>" [(match_parallel 3 "call_operation" [(set (match_operand 0 "nvptx_register_operand" "=R") - (call (mem:QI (match_operand 1 "call_insn_operand" "Rs")) + (call (mem:QI (match_operand:P 1 "call_insn_operand" "Rs")) (match_operand 2)))])] "" { @@ -1513,7 +1513,7 @@ (define_insn "nvptx_red_partition" [(set (match_operand:DI 0 "nonimmediate_operand" "=R") - (unspec_volatile [(match_operand:DI 1 "const_int_operand")] + (unspec_volatile:DI [(match_operand:DI 1 "const_int_operand")] UNSPECV_RED_PART))] "" { |