]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: silence warnings
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 27 Oct 2023 10:37:07 +0000 (11:37 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 10 Nov 2023 17:57:03 +0000 (17:57 +0000)
The operands really should be VOIDmode, so the warnings are false.

gcc/ChangeLog:

* config/gcn/gcn-valu.md
(vec_extract<V_1REG:mode><V_1REG_ALT:mode>_nop): Mention "operands" in
condition to silence the warnings.
(vec_extract<V_2REG:mode><V_2REG_ALT:mode>_nop): Likewise.
* config/gcn/gcn.md (*movti_insn): Likewise.

gcc/ChangeLog.omp
gcc/config/gcn/gcn-valu.md
gcc/config/gcn/gcn.md

index 43e69b75e61193cac2d3907ed8b0259d68dd8797..c0a30ee6076b4f8405e939b1ebe3ecf5a1ae643b 100644 (file)
@@ -1,3 +1,14 @@
+2023-11-10  Andrew Stubbs  <ams@codesourcery.com>
+
+       Backport from mainline:
+       Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/gcn/gcn-valu.md
+       (vec_extract<V_1REG:mode><V_1REG_ALT:mode>_nop): Mention "operands" in
+       condition to silence the warnings.
+       (vec_extract<V_2REG:mode><V_2REG_ALT:mode>_nop): Likewise.
+       * config/gcn/gcn.md (*movti_insn): Likewise.
+
 2023-11-10  Andrew Stubbs  <ams@codesourcery.com>
 
        Backport from mainline:
index 790bada7885c2e054f19d7445ed24f751317dc65..2e8eea4ab5ce3915a743efcdcd42caa84c3efeb2 100644 (file)
          (match_operand:V_1REG 1 "register_operand"   " 0,v")
          (match_operand 2 "ascending_zero_int_parallel" "")))]
   "MODE_VF (<V_1REG_ALT:MODE>mode) < MODE_VF (<V_1REG:MODE>mode)
-   && <V_1REG_ALT:SCALAR_MODE>mode == <V_1REG:SCALAR_MODE>mode"
+   && <V_1REG_ALT:SCALAR_MODE>mode == <V_1REG:SCALAR_MODE>mode
+   /* This comment silences a warning for operands[2]. */"
   "@
   ; in-place extract %0
   v_mov_b32\t%L0, %L1"
          (match_operand:V_2REG 1 "register_operand"   " 0,v")
          (match_operand 2 "ascending_zero_int_parallel" "")))]
   "MODE_VF (<V_2REG_ALT:MODE>mode) < MODE_VF (<V_2REG:MODE>mode)
-   && <V_2REG_ALT:SCALAR_MODE>mode == <V_2REG:SCALAR_MODE>mode"
+   && <V_2REG_ALT:SCALAR_MODE>mode == <V_2REG:SCALAR_MODE>mode
+   /* This comment silences a warning for operands[2]. */"
   "@
   ; in-place extract %0
   v_mov_b32\t%L0, %L1\;v_mov_b32\t%H0, %H1"
index bffbd3e6c1e2d75ee6322704ababf4c6f02ddf0b..f674d36d4083075af1d683ec8f82c6a625394966 100644 (file)
 
 (define_insn "prologue_use"
   [(unspec_volatile [(match_operand 0 "register_operand")] UNSPECV_PROLOGUE_USE)]
-  ""
+  "1 /* This comment silences a warning for operands[2]. */"
   ""
   [(set_attr "length" "0")])