Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
llvmbot opened this issue Mar 1, 2015 · 1 comment
Closed

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

llvmbot opened this issue Mar 1, 2015 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang:codegen IR generation bugs: mangling, exceptions, etc. worksforme Resolved as "works for me"

Comments

@llvmbot
Copy link
Member

llvmbot commented Mar 1, 2015

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.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
@Endilll
Copy link
Contributor

Endilll commented Aug 9, 2023

I can't reproduce the crash using Clang 3.2 through 3.7 with assertions enabled.
Every one of them give me the following error: fatal error: error in backend: SSE register return with SSE disabled.

@Endilll Endilll closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2023
@Endilll Endilll added the worksforme Resolved as "works for me" label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:codegen IR generation bugs: mangling, exceptions, etc. worksforme Resolved as "works for me"
Projects
None yet
Development

No branches or pull requests

2 participants