-
Notifications
You must be signed in to change notification settings - Fork 385
Check that target features required by LLVM intrinsics are enabled #3180
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
Check that target features required by LLVM intrinsics are enabled #3180
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good, I just hope we got them all. :)
Could you add a test to ensure the UB indeed does get reported properly?
Oh right, SSE4.1 is enabled by default on macOS |
|
||
unsafe { | ||
// Pass, since SSE is enabled | ||
let _ = addss(_mm_setzero_ps(), _mm_setzero_ps()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these must_use, or why the let _
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply to make it explicit that we don't care about the returned value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this more confusing than helpful, TBH. I'd prefer if you removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So be it
Thanks for the PR! |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
Fixes #3178