public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/11965] New: vmhaddshs, vmhraddshs uninitialized variable may cause wrong VSCR result
@ 2010-09-01  6:33 hp at sourceware dot org
  0 siblings, 0 replies; only message in thread
From: hp at sourceware dot org @ 2010-09-01  6:33 UTC (permalink / raw)
  To: gdb-prs

Looking at sim/ppc/altivec.igen 1.4 it seems the sat variable for vmhaddshs and
vmhraddshs isn't initialized before being "|=" in the vector element loop, so
depending on what the host and compiler makes of it, VSCR (from calling
ALTIVEC_SET_SAT) may be set incorrectly.  I guess not many codes looks at it,
hence going undetected until now.  Just a random observation, no test-case or
anything.  Not even sure I see right. :)

-- 
           Summary: vmhaddshs, vmhraddshs uninitialized variable may cause
                    wrong VSCR result
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: sim
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: hp at sourceware dot org
                CC: gdb-prs at sourceware dot org
GCC target triplet: powerpc-*


http://sourceware.org/bugzilla/show_bug.cgi?id=11965

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-01  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01  6:33 [Bug sim/11965] New: vmhaddshs, vmhraddshs uninitialized variable may cause wrong VSCR result hp at sourceware dot 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).