tilegx: Unbreak build
authorJakub Jelinek <jakub@redhat.com>
Sat, 2 May 2020 10:09:04 +0000 (12:09 +0200)
committerJakub Jelinek <jakub@redhat.com>
Sat, 2 May 2020 10:09:04 +0000 (12:09 +0200)
../../gcc/config/tilegx/tilegx.md:4109:1: ambiguous attribute 'n'; could be '1' (via 'I124MODE:n') or '4' (via 'I48MODE:n')
../../gcc/config/tilegx/tilegx.md:4109:1: ambiguous attribute 'n'; could be '1' (via 'I124MODE:n') or '' (via 'I48MODE:n')
../../gcc/config/tilegx/tilegx.md:4109:1: ambiguous attribute 'n'; could be '2' (via 'I124MODE:n') or '4' (via 'I48MODE:n')
../../gcc/config/tilegx/tilegx.md:4109:1: ambiguous attribute 'n'; could be '2' (via 'I124MODE:n') or '' (via 'I48MODE:n')
../../gcc/config/tilegx/tilegx.md:4109:1: ambiguous attribute 'n'; could be '4' (via 'I124MODE:n') or '' (via 'I48MODE:n')

The insn name already uses <I124MODE:n> explicitly, just the preparation
stmts don't, and as it creates a I124MODE lowpart subreg of a word mode
register, <I124MODE:n> seems obviously correct.

2020-05-02  Jakub Jelinek  <jakub@redhat.com>

* config/tilegx/tilegx.md
(insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
rather than just <n>.

gcc/ChangeLog
gcc/config/tilegx/tilegx.md

index fb776ba5a0e09351084de2197d054fc4a297faa4..5f35d5b3798132e6fedad8ff62f674dbf428bf80 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/tilegx/tilegx.md
+       (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
+       rather than just <n>.
+
 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/93492
index deff5d456ca33a474ccb156ab90bd91b3bada1a9..94be6b5de3ca5f7e40f6602a1c227b4f1112e5bc 100644 (file)
   operands[1] = simplify_gen_subreg (<I124MODE:MODE>mode, operands[1],
                                     DImode,
                                     BYTES_BIG_ENDIAN
-                                    ? UNITS_PER_WORD - <n> : 0);
+                                    ? UNITS_PER_WORD - <I124MODE:n> : 0);
 })
 
 (define_insn "*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>"