From: Christophe Lyon Date: Wed, 8 Jun 2016 12:27:23 +0000 (+0200) Subject: gcc/ X-Git-Tag: upstream/6.1~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=296f30cbc7e4a510d949d8b142b58d1cc65248a1;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ Backport from trunk r236360. 2016-05-18 James Greenhalgh * config/aarch64/aarch64-simd.md (aarch64_reduc_plus_internal): Rename to... (reduc_plus_scal): ...This, and remove previous implementation. Change-Id: I8a7af5fb252d27b281ae3970b0c36afd85beab0e --- diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index 0dd4bf8..ca82135 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -1989,19 +1989,6 @@ } ) -(define_expand "reduc_plus_scal_" - [(match_operand: 0 "register_operand" "=w") - (match_operand:V2F 1 "register_operand" "w")] - "TARGET_SIMD" - { - rtx elt = GEN_INT (ENDIAN_LANE_N (mode, 0)); - rtx scratch = gen_reg_rtx (mode); - emit_insn (gen_aarch64_reduc_plus_internal (scratch, operands[1])); - emit_insn (gen_aarch64_get_lane (operands[0], scratch, elt)); - DONE; - } -) - (define_insn "aarch64_reduc_plus_internal" [(set (match_operand:VDQV 0 "register_operand" "=w") (unspec:VDQV [(match_operand:VDQV 1 "register_operand" "w")] @@ -2020,9 +2007,9 @@ [(set_attr "type" "neon_reduc_add")] ) -(define_insn "aarch64_reduc_plus_internal" - [(set (match_operand:V2F 0 "register_operand" "=w") - (unspec:V2F [(match_operand:V2F 1 "register_operand" "w")] +(define_insn "reduc_plus_scal_" + [(set (match_operand: 0 "register_operand" "=w") + (unspec: [(match_operand:V2F 1 "register_operand" "w")] UNSPEC_FADDV))] "TARGET_SIMD" "faddp\\t%0, %1."