public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47825] New: SSE bitwise operations on floats work -g, fail -O3
@ 2011-02-20 17:03 cck0011 at yahoo dot com
  2011-02-20 17:36 ` [Bug c/47825] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: cck0011 at yahoo dot com @ 2011-02-20 17:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-13 23:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-20 17:03 [Bug c/47825] New: SSE bitwise operations on floats work -g, fail -O3 cck0011 at yahoo dot com
2011-02-20 17:36 ` [Bug c/47825] " rguenth at gcc dot gnu.org
2011-02-20 17:42 ` cck0011 at yahoo dot com
2011-02-20 18:08 ` rguenth at gcc dot gnu.org
2011-02-20 18:57 ` cck0011 at yahoo dot com
2011-02-21 10:44 ` [Bug target/47825] " rguenth at gcc dot gnu.org
2011-02-21 14:26 ` hjl.tools at gmail dot com
2011-02-22  1:53 ` cck0011 at yahoo dot com
2021-08-13 23:23 ` pinskia 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).