diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5541d9c62d9f..3321e8839707 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2020-04-29 Jakub Jelinek + PR target/94248 + * config/gcn/gcn.md (*mov_insn): Use + 'reg_overlap_mentioned_p' to check for overlap. + PR target/94706 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED instead of cxx17_empty_base_field_p. diff --git a/gcc/config/gcn/gcn.md b/gcc/config/gcn/gcn.md index 8f5937781b2b..8cfb3a85d256 100644 --- a/gcc/config/gcn/gcn.md +++ b/gcc/config/gcn/gcn.md @@ -629,7 +629,7 @@ rtx outhi = gen_highpart_mode (SImode, mode, operands[0]); /* Ensure that overlapping registers aren't corrupted. */ - if (REGNO (outlo) == REGNO (inhi)) + if (reg_overlap_mentioned_p (outlo, inhi)) { operands[0] = outhi; operands[1] = inhi;