optimization/5442: Internal compiler error if -msse intrinsic used with -O off

dmc@bayarea.net dmc@bayarea.net
Sun Jan 20 23:46:00 GMT 2002


>Number:         5442
>Category:       optimization
>Synopsis:       Internal compiler error if -msse intrinsic used with -O off
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 23:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Donald Craig
>Release:        3.1 20020120 (experimental)
>Organization:
>Environment:
System: CYGWIN_NT-5.0 DRAGON 1.3.7(0.51/3/2) 2002-01-19 13:20 i686 Athlon XP 1900+
host: i686-pc-cygwin
 build: i686-pc-cygwin
 target: i686-pc-cygwin
 configured with: ../gcc/configure --prefix=/usr/local/bin/gcc3.1
>Description:
 Compiling fpxor.c without optimization produces:
 $ gcc  -g -msse -o fpxor fpxor.c
 fpxor.c: In function `main':
 fpxor.c:12: Internal compiler error in emit_move_insn, at expr.c:2746
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile this code (fpxor.c) without -O:
 #include <xmmintrin.h>
 
 int main( argc, argv )
 int argc;
 char **argv;
 /*
    gcc -g -msse -o fpxor fpxor.c
 */
    {
      static __m128 from1, from2, to;
 
      to = _mm_xor_ps( from1, from2 );
      exit( 0 );
    }
>Fix:
Compile with -O1 or -O2 or -O3
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="fpxor.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="fpxor.c"

I2luY2x1ZGUgPHhtbWludHJpbi5oPg0KDQppbnQgbWFpbiggYXJnYywgYXJndiApDQppbnQgYXJn
YzsNCmNoYXIgKiphcmd2Ow0KLyoNCiAgZ2NjIC1nIC1tYXJjaD1hdGhsb24gLW1zc2UgLW8gZnB4
b3IgZnB4b3IuYw0KKi8NCiAgew0KICAgIHN0YXRpYyBfX20xMjggZnJvbTEsIGZyb20yLCB0bzsN
Cg0KICAgIHRvID0gX21tX3hvcl9wcyggZnJvbTEsIGZyb20yICk7DQogICAgZXhpdCggMCApOw0K
ICB9DQoNCg==



More information about the Gcc-bugs mailing list