public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/46085] [4..6 Regression] gcc.dg/vect/fast-math-vect-reduc-[57].c failed with -mavx -ffast-math -O3
Date: Tue, 19 Oct 2010 21:32:00 -0000	[thread overview]
Message-ID: <20101019213200.w1Y4MM7URkyW45rDbFpswyYI45VE7l1yMcsvwvPfPoY@z> (raw)
In-Reply-To: <bug-46085-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46085

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-19 21:32:05 UTC ---
(define_expand "reduc_splus_v8sf"
  [(match_operand:V8SF 0 "register_operand" "")
   (match_operand:V8SF 1 "register_operand" "")]
  "TARGET_AVX"
{
  rtx tmp = gen_reg_rtx (V8SFmode);
  rtx tmp2 = gen_reg_rtx (V8SFmode);
  emit_insn (gen_avx_haddv8sf3 (tmp, operands[1], operands[1]));
  emit_insn (gen_avx_haddv8sf3 (tmp2, operands[1], operands[1]));
  emit_insn (gen_avx_haddv8sf3 (operands[0], tmp2, tmp2));
  DONE;
})

and

(define_expand "reduc_splus_v4df"
  [(match_operand:V4DF 0 "register_operand" "")
   (match_operand:V4DF 1 "register_operand" "")]
  "TARGET_AVX"
{
  rtx tmp = gen_reg_rtx (V4DFmode);
  emit_insn (gen_avx_haddv4df3 (tmp, operands[1], operands[1]));
  emit_insn (gen_avx_haddv4df3 (operands[0], tmp, tmp));
  DONE;
})

are incorrect.


  parent reply	other threads:[~2010-10-19 21:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 19:34 [Bug tree-optimization/46085] New: " hjl.tools at gmail dot com
2010-10-19 19:35 ` [Bug tree-optimization/46085] " hjl.tools at gmail dot com
2010-10-19 19:48 ` hjl.tools at gmail dot com
2010-10-19 21:32 ` hjl.tools at gmail dot com [this message]
2010-10-19 22:15 ` hjl.tools at gmail dot com
2010-10-20 11:21 ` hjl at gcc dot gnu.org
2010-10-20 11:26 ` hjl.tools at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101019213200.w1Y4MM7URkyW45rDbFpswyYI45VE7l1yMcsvwvPfPoY@z \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).