public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".
Date: Thu, 13 Aug 2009 12:25:00 -0000	[thread overview]
Message-ID: <20090813122547.19231.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41019-13452@http.gcc.gnu.org/bugzilla/>



------- Comment #13 from rguenth at gcc dot gnu dot org  2009-08-13 12:25 -------
Err, the expansion is already completely bogus:

;; *vect_pa.50 = [vec_cond_expr]  VEC_COND_EXPR < *vect_pa.44 != { 5, 5 } , {
12, 12 } , { 10, 10 } > ;

(insn 7 6 8 t.c:12 (set (reg:V2DI 63)
        (mem/u/c/i:V2DI (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [2 S16 A128]))
-1 (expr_list:REG_EQUAL (const_vector:V2DI [
                (const_int 5 [0x5])
                (const_int 5 [0x5])
            ])
        (nil)))

(insn 8 7 9 t.c:12 (set (reg:V2DI 64)
        (mem/u/c/i:V2DI (symbol_ref/u:DI ("*.LC1") [flags 0x2]) [2 S16 A128]))
-1 (expr_list:REG_EQUAL (const_vector:V2DI [
                (const_int 12 [0xc])
                (const_int 12 [0xc])
            ])
        (nil)))

(insn 9 8 10 t.c:12 (set (reg:V2DI 65)
        (mem/u/c/i:V2DI (symbol_ref/u:DI ("*.LC2") [flags 0x2]) [2 S16 A128]))
-1 (expr_list:REG_EQUAL (const_vector:V2DI [
                (const_int 10 [0xa])
                (const_int 10 [0xa])
            ])
        (nil)))

(insn 10 9 0 t.c:12 (set (mem:V2DI (reg/f:DI 58 [ vect_pa.50 ]) [2 S16 A128])
        (reg:V2DI 62)) -1 (nil))


so - we load three constants and store the uninitialized reg 62.

Which means the optabs for this case are broken.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uros at gcc dot gnu dot org
          Component|tree-optimization           |target


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


  parent reply	other threads:[~2009-08-13 12:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-09 20:56 [Bug c++/41019] New: " m_albert137 at yahoo dot com
2009-08-09 21:02 ` [Bug c++/41019] " m_albert137 at yahoo dot com
2009-08-09 21:06 ` m_albert137 at yahoo dot com
2009-08-09 21:09 ` m_albert137 at yahoo dot com
2009-08-11 15:04 ` m_albert137 at yahoo dot com
2009-08-11 15:24 ` [Bug tree-optimization/41019] " rguenth at gcc dot gnu dot org
2009-08-11 20:17 ` afoglia at gmail dot com
2009-08-12 12:14 ` irar at il dot ibm dot com
2009-08-12 12:37 ` rguenther at suse dot de
2009-08-13  5:41 ` irar at il dot ibm dot com
2009-08-13  8:56 ` rguenth at gcc dot gnu dot org
2009-08-13 11:35 ` irar at il dot ibm dot com
2009-08-13 11:36 ` irar at il dot ibm dot com
2009-08-13 11:37 ` irar at il dot ibm dot com
2009-08-13 12:25 ` rguenth at gcc dot gnu dot org [this message]
2009-08-13 12:32 ` [Bug target/41019] " rguenth at gcc dot gnu dot org
2009-08-13 13:02 ` ubizjak at gmail dot com
2009-08-13 13:04 ` ubizjak at gmail dot com
2009-08-13 13:09 ` rguenther at suse dot de
2009-08-13 13:35 ` ubizjak at gmail dot com
2009-08-13 13:40 ` ubizjak at gmail dot com
2009-08-13 14:27 ` m_albert137 at yahoo dot com
2009-08-13 15:27 ` ubizjak at gmail dot com
2009-08-13 16:21 ` [Bug target/41019] [4.3/4.4/4.5 Regression] Vector conditional move produces wrong code with -O3 ubizjak at gmail dot com
2009-08-13 18:28 ` ubizjak at gmail dot com
2009-08-14 10:31 ` uros at gcc dot gnu dot org
2009-08-16 19:35 ` uros at gcc dot gnu dot org
2009-08-16 21:06 ` uros at gcc dot gnu dot org
2009-08-16 21:07 ` ubizjak 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=20090813122547.19231.qmail@sourceware.org \
    --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).