-
Notifications
You must be signed in to change notification settings - Fork 132
Add support for ldexp intrinsic
#1263
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
base: master
Are you sure you want to change the base?
Conversation
|
thanks Mitch. it looks good to me overall, but of course Nuno will have opinions about the details. can you add some test cases that involve vectors, and also some test cases that aren't corner cases? that is, a few of them (with both positive and negative values for the integer argument) that result in just regular in-range values? |
|
Done. Also, I should mention this fixes #1262. |
| dup(Function &f, const std::string &suffix) const override; | ||
| }; | ||
|
|
||
|
|
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.
random change
| } | ||
|
|
||
| ; Currently times out | ||
| ; define float @src15(float %x) { |
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.
you can leave timing out tests uncommented. They will not fail the test.
|
The algorithm is not correct. It's actually quite hard to implement ldexp. For example, for zero underflow: x = 2.0f / rhs = -150. |
First time contributing, so please let me know if the SMT can be simplified.