aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2023-10-27 11:37:07 +0100
committerAndrew Stubbs <ams@codesourcery.com>2023-11-10 17:57:03 +0000
commit3312ab3b34bfcb63aac21c8aef992f373850fe45 (patch)
tree7cffcec793d285bda2fccdd4302bfa1fc4601dd4 /gcc
parent666dc24ef00ad6e4ee6c711a560fd9356634bde2 (diff)
downloadgcc-3312ab3b34bfcb63aac21c8aef992f373850fe45.zip
gcc-3312ab3b34bfcb63aac21c8aef992f373850fe45.tar.gz
gcc-3312ab3b34bfcb63aac21c8aef992f373850fe45.tar.bz2
amdgcn: silence warnings
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.omp11
-rw-r--r--gcc/config/gcn/gcn-valu.md6
-rw-r--r--gcc/config/gcn/gcn.md2
3 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index 43e69b7..c0a30ee 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -3,6 +3,17 @@
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:
+ Andrew Stubbs <ams@codesourcery.com>
+
* config/gcn/gcn-valu.md (*mov<mode>): Convert to compact syntax.
(mov<mode>_exec): Likewise.
(mov<mode>_sgprbase): Likewise.
diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md
index 790bada..2e8eea4 100644
--- a/gcc/config/gcn/gcn-valu.md
+++ b/gcc/config/gcn/gcn-valu.md
@@ -948,7 +948,8 @@
(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"
@@ -961,7 +962,8 @@
(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"
diff --git a/gcc/config/gcn/gcn.md b/gcc/config/gcn/gcn.md
index bffbd3e..f674d36 100644
--- a/gcc/config/gcn/gcn.md
+++ b/gcc/config/gcn/gcn.md
@@ -710,7 +710,7 @@
(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")])