From 9ae1fbdd38c565ef0cde18b614d68119cbc9af63 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 27 Oct 2023 11:37:07 +0100 Subject: amdgcn: silence warnings The operands really should be VOIDmode, so the warnings are false. gcc/ChangeLog: * config/gcn/gcn-valu.md (vec_extract_nop): Mention "operands" in condition to silence the warnings. (vec_extract_nop): Likewise. * config/gcn/gcn.md (*movti_insn): Likewise. --- gcc/config/gcn/gcn-valu.md | 6 ++++-- gcc/config/gcn/gcn.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'gcc/config/gcn') diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index c128c81..39c1dc5 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 (mode) < MODE_VF (mode) - && mode == mode" + && 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 (mode) < MODE_VF (mode) - && mode == mode" + && 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 a3d8bee..e6a9ac6 100644 --- a/gcc/config/gcn/gcn.md +++ b/gcc/config/gcn/gcn.md @@ -694,7 +694,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")]) -- cgit v1.1