From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3599 invoked by alias); 20 Feb 2011 16:58:10 -0000 Received: (qmail 3591 invoked by uid 22791); 20 Feb 2011 16:58:09 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GC,TW_IB X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Feb 2011 16:58:05 +0000 From: "cck0011 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/47825] New: SSE bitwise operations on floats work -g, fail -O3 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cck0011 at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 20 Feb 2011 17:03:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg02345.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47825 Summary: SSE bitwise operations on floats work -g, fail -O3 Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: cck0011@yahoo.com Created attachment 23413 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23413 .i file Hi folks, I'm trying the vec_sel() example using SSE (bitwise and, or, andnot) to select bits from two vectors to build a third. It works under -g, but fails under -O3. What am I missing? thanks. gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux Thread model: posix gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) works under: cc -g -o setel setel.c -msse -mmmx -pedantic -Wall fails under: cc -O3 -o setel setel.c -msse -mmmx -pedantic -Wall .i file attached