]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Use no,yes for attribute predicable
authorTom de Vries <tdevries@suse.de>
Tue, 8 Mar 2022 12:55:09 +0000 (13:55 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 10 Mar 2022 11:21:30 +0000 (12:21 +0100)
commit3357878ef56d1e47666fc697cfd7cb5cd9c1dfc9
treedcf67b520d7fdc6ebc72b132e56f96ff891a6ed3
parentf07178ca3c1e5dff799fb5016bb3767571db3165
[nvptx] Use no,yes for attribute predicable

The documentation states about the predicable instruction attribute:
...
This attribute must be a boolean (i.e. have exactly two elements in its
list-of-values), with the possible values being no and yes.
...

The nvptx port has instead:
...
(define_attr "predicable" "false,true"
  (const_string "true"))
...

Fix this by updating to:
...
(define_attr "predicable" "no,yes"
  (const_string "yes"))
...

Tested on nvptx.

gcc/ChangeLog:

2022-03-08  Tom de Vries  <tdevries@suse.de>

PR target/104840
* config/nvptx/nvptx.md (define_attr "predicable"): Use no,yes instead
of false,true.
gcc/config/nvptx/nvptx.md