Enable lowering of FNEARBYINT for f16 and extend existing tests.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/test/CodeGen/AMDGPU/fnearbyint.ll | ||
|---|---|---|
| 6–7 | This test is missing checks somehow | |
| llvm/test/CodeGen/AMDGPU/fnearbyint.ll | ||
|---|---|---|
| 6–7 | Do we want checks for all of the functions? The comment on lines 5-6 suggests the checks were left out intentionally. | |
Comments on SWDEV-353076 suggested there was a related issue with roundeven but I wasn't able to find any.
| llvm/test/CodeGen/AMDGPU/fnearbyint.ll | ||
|---|---|---|
| 6–7 | The comment is nonsense and it's bad practice to have no checks | |
| llvm/test/CodeGen/AMDGPU/fnearbyint.ll | ||
|---|---|---|
| 6–7 | I'm happy to add the checks. If I only add them for nearbyint.f16 people might argue that the new code is inconsistent. If I add them for every function the changes would be out of scope for the task. What's the preferred option here? | |
| llvm/test/CodeGen/AMDGPU/fnearbyint.ll | ||
|---|---|---|
| 6–7 | Fix the test by adding checks in a pre commit before this patch | |
This test is missing checks somehow