Skip to content

generator crashes with -mfpmath=387 -mno-sse #23119

Closed as not planned
Closed as not planned
@llvmbot

Description

@llvmbot
Bugzilla Link 22745
Version 3.5
OS Linux
Attachments preprocessed source and run script
Reporter LLVM Bugzilla Contributor
CC @rotateright

Extended Description

I'm working on a meshing code and noticed different results on MacBook and Lenovo machines. I think I've traced it to slightly different floating point arithmetic. Per this StackOverflow answer:

http://stackoverflow.com/questions/17663780/is-there-a-document-describing-how-clang-handles-excess-floating-point-precision

I tried compiling with "-O2 -mfpmath=387 -mno-sse", which crashed the clang code generator. Attached is a tarball with the clang output and the temporary files it requested.

I don't actually care so much whether clang can support this obscure combination of flags, what I'm really interested in is what flags do I use to get exactly the same answers on both machines.

I did see that bug 3604 is a possible duplicate, but clang still crashes so I'll submit this bug as a request that it not crash with these flags, instead exit cleanly with a descriptive error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.worksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions