Skip to content
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

SSE disabled libstd creates an error #66644

Closed
mincheolsung opened this issue Nov 22, 2019 · 2 comments
Closed

SSE disabled libstd creates an error #66644

mincheolsung opened this issue Nov 22, 2019 · 2 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@mincheolsung
Copy link

mincheolsung commented Nov 22, 2019

I added disabling SSE and MMX on https://github.com/hermitcore/rust/blob/ab6cb0197188f0c842d7dd2e378777f0bc0f6240/src/librustc_target/spec/x86_64_unknown_hermit.rs#L7 and built libstd.

When I tried to build an application with -C soft-float, I got LLVM ERROR: SSE register return with SSE disabled.

@jonas-schievink
Copy link
Contributor

It is possible that LLVM simply does not handle this, since you're building for x86-64, which always has SSE available.

@jonas-schievink jonas-schievink added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 22, 2019
@mincheolsung
Copy link
Author

I tried with -Ctarget-feature=+soft-float instead of -C soft-float and it fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants