From 7a723d822a17e697f3a02abf40fb2d3415302985 Mon Sep 17 00:00:00 2001 From: Chenghua Xu Date: Wed, 13 Jun 2018 06:50:12 +0000 Subject: [PATCH] re PR tree-optimization/86076 (ICE: verify_gimple failed (error: location references block not in block tree)) 2018-06-13 Chenghua Xu PR target/86076 * config/mips/loongson.md (vec_setv4hi): Gen_lowpart for operands[2] instead of operands[1]. From-SVN: r261538 --- gcc/ChangeLog | 7 +++++++ gcc/config/mips/loongson.md | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cb7cfd91da..93e02df51b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-06-13 Chenghua Xu + + PR target/86076 + * config/mips/loongson.md (vec_setv4hi): Gen_lowpart for + operands[2] instead of operands[1]. + + 2018-06-12 Richard Sandiford * lra-constraints.c (simplify_operand_subreg): In the paradoxical diff --git a/gcc/config/mips/loongson.md b/gcc/config/mips/loongson.md index 38912acc839..14794d3671f 100644 --- a/gcc/config/mips/loongson.md +++ b/gcc/config/mips/loongson.md @@ -381,8 +381,8 @@ "TARGET_HARD_FLOAT && TARGET_LOONGSON_VECTORS" { rtx ext = gen_reg_rtx (SImode); - emit_move_insn (ext, gen_lowpart (SImode, operands[1])); - operands[1] = ext; + emit_move_insn (ext, gen_lowpart (SImode, operands[2])); + operands[2] = ext; }) ;; Multiply and add packed integers. -- 2.30.2