]> 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, 27 Oct 2023 17:00:55 +0000 (18:00 +0100)
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/config/gcn/gcn-valu.md
gcc/config/gcn/gcn.md

index c128c819c8939cebe2491ee949acd11cc737eef2..39c1dc5b7b4bf88542cd179471b3fd8bec83da29 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 a3d8beefd6d97bb7c0418fa6054fbf7d129477e3..e6a9ac60b57d4fff25ef8d1c86648a9c87dd845f 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")])