re PR tree-optimization/86076 (ICE: verify_gimple failed (error: location references...
authorChenghua Xu <paul.hua.gm@gmail.com>
Wed, 13 Jun 2018 06:50:12 +0000 (06:50 +0000)
committerChenghua Xu <paulhua@gcc.gnu.org>
Wed, 13 Jun 2018 06:50:12 +0000 (06:50 +0000)
2018-06-13  Chenghua Xu <paul.hua.gm@gmail.com>

PR target/86076
* config/mips/loongson.md (vec_setv4hi): Gen_lowpart for
operands[2] instead of operands[1].

From-SVN: r261538

gcc/ChangeLog
gcc/config/mips/loongson.md

index 0cb7cfd91daf1d51540b39549fb20877424f8c2a..93e02df51b816809811db63787b1bd16750a115d 100644 (file)
@@ -1,3 +1,10 @@
+2018-06-13  Chenghua Xu <paul.hua.gm@gmail.com>
+
+       PR target/86076
+       * config/mips/loongson.md (vec_setv4hi): Gen_lowpart for
+       operands[2] instead of operands[1].
+
+
 2018-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * lra-constraints.c (simplify_operand_subreg): In the paradoxical
index 38912acc839b314e856c612a5e2b8c1bce427080..14794d3671f72c16f280d6a494f7962a07db77e3 100644 (file)
   "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.