diff options
| author | thomasraoux <thomasraoux@google.com> | 2021-05-24 07:36:29 -0700 |
|---|---|---|
| committer | thomasraoux <thomasraoux@google.com> | 2021-05-24 07:45:03 -0700 |
| commit | 505933a489206fc4b27f4fb4292c52097faa294e (patch) | |
| tree | dd02209326183d8b47f52048414f24756990a340 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 60b33ebe8b9cce8bda3cc15e889a96c0f5b75ac4 (diff) | |
[NVPTX] Fix lowering of frem for negative values
to match fmod frem result must have the dividend sign. Previous implementation
had the wrong sign when passing negative numbers. For ex: frem(-16, 7) was
returning 5 instead of -2. We should just a ftrunc instead of floor when
lowering to get the right behavior.
Differential Revision: https://reviews.llvm.org/D102528
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
