diff options
author | Vladimir N. Makarov <vmakarov@redhat.com> | 2020-06-04 12:04:48 -0400 |
---|---|---|
committer | Vladimir N. Makarov <vmakarov@redhat.com> | 2020-06-04 12:04:48 -0400 |
commit | 5261cf8ce824bfc75eb6f12ad5e3716c085b6f9a (patch) | |
tree | 0314db79f99340d6ba2e7f1c2336a7fc1c2c94ed /gcc/lra-constraints.c | |
parent | ab56390384cd5168b548ff07e6f0c9c4d41420fb (diff) | |
download | gcc-5261cf8ce824bfc75eb6f12ad5e3716c085b6f9a.zip gcc-5261cf8ce824bfc75eb6f12ad5e3716c085b6f9a.tar.gz gcc-5261cf8ce824bfc75eb6f12ad5e3716c085b6f9a.tar.bz2 |
Add processing STRICT_LOW_PART for matched reloads.
2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/95464
* lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
* lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
reload if the original insn has it too.
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index bf6d4a2..421c453 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -1071,6 +1071,8 @@ match_reload (signed char out, signed char *ins, signed char *outs, if (find_reg_note (curr_insn, REG_UNUSED, out_rtx) == NULL_RTX) { start_sequence (); + if (out >= 0 && curr_static_id->operand[out].strict_low) + out_rtx = gen_rtx_STRICT_LOW_PART (VOIDmode, out_rtx); lra_emit_move (out_rtx, copy_rtx (new_out_reg)); emit_insn (*after); *after = get_insns (); |