public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52407] New: sse2 simd uint32_t and int64_t and stack variable initialization
@ 2012-02-27 21:17 pcpa at mandriva dot com.br
  2012-02-28  0:14 ` [Bug target/52407] " ubizjak at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: pcpa at mandriva dot com.br @ 2012-02-27 21:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52407
           Summary: sse2 simd uint32_t and int64_t and stack variable
                    initialization
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pcpa@mandriva.com.br


Created attachment 26766
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26766
simple test

The attached test case works if adapted for smaller integer
types (initializing more fields through the pointer), and also
works if declaring either "mul_vl_l" variables "p" or "w" static
or global.

  If compiled with -O0 it also works, but -O1 or greater
generates incorrect result. If not casting and initializing
through the pointer, as in the "#if 0" code it also works.

expected output:
$ ./a.out
2 4 6 8 10 12 14 16 

generated output:
$ ./a.out
0 4 0 8 0 12 0 16


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-05-22 10:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 21:17 [Bug c/52407] New: sse2 simd uint32_t and int64_t and stack variable initialization pcpa at mandriva dot com.br
2012-02-28  0:14 ` [Bug target/52407] " ubizjak at gmail dot com
2012-02-28 10:43 ` rguenth at gcc dot gnu.org
2012-02-28 11:35 ` rguenth at gcc dot gnu.org
2012-02-28 11:39 ` rguenth at gcc dot gnu.org
2012-02-28 11:45 ` [Bug target/52407] [4.7 Regression] " rguenth at gcc dot gnu.org
2012-02-28 12:16 ` jakub at gcc dot gnu.org
2012-02-28 15:30 ` rguenth at gcc dot gnu.org
2012-02-28 15:36 ` [Bug target/52407] [4.6 " rguenth at gcc dot gnu.org
2012-02-28 18:11 ` jamborm at gcc dot gnu.org
2012-02-29 18:30 ` pcpa at mandriva dot com.br
2012-03-01  9:54 ` rguenth at gcc dot gnu.org
2012-05-22 10:04 ` rguenth at gcc dot gnu.org
2012-05-22 10:12 ` rguenth at gcc dot gnu.org

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).