This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/11965] New: vmhaddshs, vmhraddshs uninitialized variable may cause wrong VSCR result
- From: "hp at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 1 Sep 2010 06:33:40 -0000
- Subject: [Bug sim/11965] New: vmhaddshs, vmhraddshs uninitialized variable may cause wrong VSCR result
- Reply-to: sourceware-bugzilla at sourceware dot org
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.