public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15795] New: Strange bug / incorrect code generation with SSE
@ 2004-06-03 14:36 ma1flfs at bath dot ac dot uk
  2004-06-03 14:50 ` [Bug c++/15795] " pinskia at gcc dot gnu dot org
                   ` (35 more replies)
  0 siblings, 36 replies; 46+ messages in thread
From: ma1flfs at bath dot ac dot uk @ 2004-06-03 14:36 UTC (permalink / raw)
  To: gcc-bugs

The following test program, when compiled with 
g++ -O2 -march=pentium4 -msse 
will segfault, at least on the machines I tried it on: 
* Pentium III (Katmai) 
* Intel(R) Pentium(R) 4 CPU 3.00GHz 
* Intel(R) Xeon(TM) CPU 2.40GHz 
 
When allocating fewer vectors, it sometimes works. Oh, and it also fails with 
intels own compiler... 
 
#include <xmmintrin.h> 
#include <stdio.h> 
 
class Vector4 
{ 
public: 
	Vector4() { vec = _mm_setzero_ps(); } 
 
	__m128 vec; 
}; 
 
int main(int argc, char **argv) 
{ 
	Vector4 *foo = new Vector4[200*200]; 
	delete foo; 
}

-- 
           Summary: Strange bug / incorrect code generation with SSE
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ma1flfs at bath dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 46+ messages in thread
[parent not found: <bug-15795-6844@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-15795-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-10-30 10:39 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 14:36 [Bug c++/15795] New: Strange bug / incorrect code generation with SSE ma1flfs at bath dot ac dot uk
2004-06-03 14:50 ` [Bug c++/15795] " pinskia at gcc dot gnu dot org
2004-06-03 14:54 ` ma1flfs at bath dot ac dot uk
2004-06-03 14:57 ` pinskia at gcc dot gnu dot org
2004-06-03 15:09 ` ma1flfs at bath dot ac dot uk
2004-06-03 15:12 ` pinskia at gcc dot gnu dot org
2004-06-03 15:15 ` ma1flfs at bath dot ac dot uk
2004-06-03 15:18 ` pinskia at gcc dot gnu dot org
2004-06-03 16:25 ` ma1flfs at bath dot ac dot uk
2004-06-03 17:08 ` ma1flfs at bath dot ac dot uk
2004-06-03 17:18   ` Andrew Pinski
2004-06-03 17:18 ` pinskia at physics dot uc dot edu
2004-06-03 17:33 ` bangerth at dealii dot org
2004-06-03 17:39 ` [Bug c++/15795] No way to teach operator new anything about alignment requirements bangerth at dealii dot org
2004-06-03 22:40 ` pinskia at gcc dot gnu dot org
2004-06-03 23:02 ` jason at gcc dot gnu dot org
2004-06-04  0:15 ` bangerth at dealii dot org
2004-06-04  9:34 ` ma1flfs at bath dot ac dot uk
2004-06-04 11:29 ` nathan at gcc dot gnu dot org
2004-06-04 13:42 ` bangerth at dealii dot org
2004-06-05 14:28 ` ma1flfs at bath dot ac dot uk
2004-06-08 15:56 ` bangerth at dealii dot org
2004-06-08 16:43 ` nathan at gcc dot gnu dot org
2004-06-08 17:43 ` bangerth at dealii dot org
2004-06-08 18:04 ` jason at gcc dot gnu dot org
2004-06-08 18:05 ` jason at redhat dot com
2004-06-08 18:39 ` jason at redhat dot com
2004-06-08 18:45 ` ma1flfs at bath dot ac dot uk
2004-06-08 19:04 ` jason at redhat dot com
2004-06-08 19:25 ` bangerth at dealii dot org
2004-06-08 19:27 ` ma1flfs at bath dot ac dot uk
2004-06-08 20:04 ` jason at redhat dot com
2004-06-08 20:06 ` jason at redhat dot com
2004-06-08 20:26 ` ma1flfs at bath dot ac dot uk
2004-06-08 20:34 ` jakub at gcc dot gnu dot org
2004-06-08 20:45 ` bangerth at dealii dot org
2004-07-15  4:33 ` pinskia at gcc dot gnu dot org
2005-01-13 23:21 ` pinskia at gcc dot gnu dot org
     [not found] <bug-15795-6844@http.gcc.gnu.org/bugzilla/>
2006-10-10  4:54 ` mrs at apple dot com
2006-11-12 15:33 ` timday at bottlenose dot demon dot co dot uk
2008-11-10 22:35 ` pinskia at gcc dot gnu dot org
2008-11-11  6:25 ` David dot Monniaux at imag dot fr
2008-11-20 16:45 ` hjl dot tools at gmail dot com
2008-12-09 17:56 ` rguenth at gcc dot gnu dot org
     [not found] <bug-15795-4@http.gcc.gnu.org/bugzilla/>
2021-10-29  1:01 ` pinskia at gcc dot gnu.org
2021-10-30 10:39 ` redi 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).