aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorJim Wilson <jim.wilson@linaro.org>2017-05-13 01:32:40 +0000
committerJim Wilson <wilson@gcc.gnu.org>2017-05-12 18:32:40 -0700
commitf96bf49a02464e07526289799c14c1333a71a02b (patch)
tree255e553b1d2aa340ebdd900f20d69044173c367d /gcc/optabs.c
parent7f390a7b6ce8491fb89c9f4f393b161c8075823a (diff)
downloadgcc-f96bf49a02464e07526289799c14c1333a71a02b.zip
gcc-f96bf49a02464e07526289799c14c1333a71a02b.tar.gz
gcc-f96bf49a02464e07526289799c14c1333a71a02b.tar.bz2
Patch for RTL expand bug affecting aarch64 vector code.
gcc/ PR middle-end/79794 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before maybe_expand_insn call, set ops[0].target. If still set after call, set alt_rtl. Add extra arg to recursive calls. (extract_bit_field): Add alt_rtl argument. Pass to extract_bit_field. * expmed.h (extract_bit_field): Fix prototype. * expr.c (emit_group_load_1, copy_blkmode_from_reg) (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL to extract_bit_field_calls. (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0. Pass alt_rtl to extract_bit_field calls. * calls.c (store_unaligned_arguments_into_psuedos) load_register_parameters): Pass extra NULL to extract_bit_field calls. * optabs.c (maybe_legitimize_operand): Clear op->target when call gen_reg_rtx. * optabs.h (struct expand_operand): Add target bitfield. From-SVN: r248004
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 48e37f8..b69e759 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -6962,6 +6962,7 @@ maybe_legitimize_operand (enum insn_code icode, unsigned int opno,
return true;
op->value = gen_reg_rtx (mode);
+ op->target = 0;
break;
case EXPAND_INPUT: