public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "uros at kss-loka dot si" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/16584] -msse2 also enabling -mfpmath=sse option causing illegal instruction errors Date: Fri, 24 Dec 2004 14:29:00 -0000 [thread overview] Message-ID: <20041224142929.24388.qmail@sourceware.org> (raw) In-Reply-To: <20040716024656.16584.aron-gcc@sightspeed.com> ------- Additional Comments From uros at kss-loka dot si 2004-12-24 14:29 ------- With current TARGET_SSE_MATH work, mainline gcc produces: main: pushl %ebp movl %esp, %ebp subl $24, %esp andl $-16, %esp movl $0, %eax addl $15, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp movl $1, -8(%ebp) movl -8(%ebp), %eax imull -8(%ebp), %eax pushl %eax fildl (%esp) leal 4(%esp), %esp fstps -4(%ebp) movl $0, %eax leave ret However, -mfpmath just tells which instruction set is preferred. It is -msse, -mmmx etc. that tells the compiler which instructions it can use, independently of -mfpmath setting. For example, cvttss2si insn will be generated when -msse is specified, no matter what -mfpmath setting you use. -mmmx, -msse and -msse2 are treated the same way as -march=pentium3, etc. You can not run the code, compiled with -march=pentium4 on i586. However, this part of documentation should be fixed: For i387 you need to use `-march=CPU-TYPE', `-msse' or `-msse2' switches to enable SSE extensions and make this I belive, it should read: For i386 compiler, you need to use `-march=CPU-TYPE', `-msse' or `-msse2' switches to enable SSE extensions and make this Uros. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16584
next prev parent reply other threads:[~2004-12-24 14:29 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-16 2:47 [Bug c/16584] New: " aron-gcc at sightspeed dot com 2004-07-16 6:32 ` [Bug c/16584] " pinskia at gcc dot gnu dot org 2004-07-16 17:11 ` aron-gcc at sightspeed dot com 2004-07-16 18:25 ` [Bug target/16584] " pinskia at gcc dot gnu dot org 2004-07-30 17:46 ` aron-gcc at sightspeed dot com 2004-12-24 14:29 ` uros at kss-loka dot si [this message] 2004-12-28 15:33 ` uros at kss-loka dot si 2005-01-05 10:00 ` uros at kss-loka dot si
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041224142929.24388.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).