Uh oh!
There was an error while loading. Please reload this page.
Properly check target_features not to trigger an assertion - #89937
Conversation
This comment has been minimized.
This comment has been minimized.
Amanieu
commented
Oct 19, 2021
The |
JohnTitor
commented
Oct 19, 2021
Hmm, I'm not sure about the right condition then. Since #89641, the target_features check has been moved to By the way, the test passes fine on my local and godbolt if I pass the target feature as a compile flag, but CI doesn't, any ideas? |
Amanieu
commented
Oct 20, 2021
OK, so I spent a while looking through the changes in this PR and #89641. The original assert is still correct and shouldn't be removed. Instead the issue is in the
CI uses LLVM 10 and the error message seems to come from LLVM. LLVM 10 doesn't support the |
codegen_inline_asmtarget_features not to trigger an assertionJohnTitor
commented
Oct 20, 2021
Thanks for the help! I think |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
`is_clobber()` already checks if `reg` is a register and the both values should be the same.
JohnTitor
commented
Oct 26, 2021
It now passes the tests, @Amanieu could you re-review? |
Amanieu
commented
Oct 26, 2021
@bors r+ |
bors
commented
Oct 26, 2021
📌 Commit 12647ea has been approved by |
Properly check `target_features` not to trigger an assertion Fixesrust-lang#89875 I think it should be a condition instead of an assertion to check if it's a register as it's possible that `reg` is a register class. Also, this isn't related to the issue directly, but `is_target_supported` doesn't check `target_features` attributes. Is there any way to check it on rustc_codegen_llvm? r? `@Amanieu`
bors
commented
Oct 26, 2021
⌛ Testing commit 12647ea with merge cf1e3d5e2c954b4dc3401f78cbb87d285f642b03... |
bors
commented
Oct 27, 2021
💥 Test timed out |
JohnTitor
commented
Oct 27, 2021
@bors retry |
bors
commented
Oct 27, 2021
bors
commented
Oct 27, 2021
☀️ Test successful - checks-actions |
rust-timer
commented
Oct 27, 2021
Finished benchmarking commit (a9b2bfb): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Fixes#89875
I think it should be a condition instead of an assertion to check if it's a register as it's possible that
regis a register class.Also, this isn't related to the issue directly, but
is_target_supporteddoesn't checktarget_featuresattributes. Is there any way to check it on rustc_codegen_llvm?r? @Amanieu