public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "Thomas dot Koenig at online dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/19116] -fno-finite-math-only does not override -ffast-math Date: Mon, 27 Dec 2004 10:26:00 -0000 [thread overview] Message-ID: <20041227102647.21479.qmail@sourceware.org> (raw) In-Reply-To: <20041221203640.19116.Thomas.Koenig@online.de> ------- Additional Comments From Thomas dot Koenig at online dot de 2004-12-27 10:26 ------- (In reply to comment #6) > Can you try just -funsafe-math-optimizations and see what happens I think you will get the same > results as "-ffast-math -fno-finite-math-only" as I think an instruction in the .md file checks the wrong > flag. $ gcc -funsafe-math-optimizations nan-check2.c $ ./a.out nan compares equal to itself $ gcc -S -funsafe-math-optimizations nan-check2.c $ cat nan-check2.s .file "nan-check2.c" .section .rodata .LC1: .string "%f compares equal to itself\n" .align 4 .LC2: .string "%f compares unequal to itself\n" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp subl $56, %esp andl $-16, %esp movl $0, %eax addl $15, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp fldz fstpl -16(%ebp) fldz fstpl -8(%ebp) fldl -16(%ebp) fdivl -8(%ebp) fstpl -24(%ebp) leal -24(%ebp), %eax movl %eax, 4(%esp) leal -24(%ebp), %eax movl %eax, (%esp) call equality testl %eax, %eax je .L2 fldl -24(%ebp) fstpl 4(%esp) movl $.LC1, (%esp) call printf jmp .L4 .L2: fldl -24(%ebp) fstpl 4(%esp) movl $.LC2, (%esp) call printf .L4: movl $0, %eax leave ret .size main, .-main .globl equality .type equality, @function equality: pushl %ebp movl %esp, %ebp movl 8(%ebp), %eax fldl (%eax) movl 12(%ebp), %eax fldl (%eax) fcompp fnstsw %ax sahf sete %al movzbl %al, %eax popl %ebp ret .size equality, .-equality .ident "GCC: (GNU) 4.0.0 20041224 (experimental)" .section .note.GNU-stack,"",@progbits $ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19116
next prev parent reply other threads:[~2004-12-27 10:26 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-12-21 20:36 [Bug driver/19116] New: " Thomas dot Koenig at online dot de 2004-12-21 20:45 ` [Bug middle-end/19116] " pinskia at gcc dot gnu dot org 2004-12-21 21:03 ` Thomas dot Koenig at online dot de 2004-12-25 14:32 ` Thomas dot Koenig at online dot de 2004-12-25 22:17 ` Thomas dot Koenig at online dot de 2004-12-25 22:29 ` [Bug target/19116] " pinskia at gcc dot gnu dot org 2004-12-27 0:41 ` pinskia at gcc dot gnu dot org 2004-12-27 10:26 ` Thomas dot Koenig at online dot de [this message] 2004-12-27 14:00 ` [Bug target/19116] -funsafe-math-optimizations make nan compares equal to one another (-finite-math-only should be doing that) pinskia at gcc dot gnu dot org 2005-01-17 13:42 ` hunor at cs dot bme dot hu
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=20041227102647.21479.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).