This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Handle corner cases for math.powf conversion
ClosedPublic

Authored by antiagainst on Jun 14 2022, 6:13 PM.

Details

Summary

Per GLSL Pow extended instruction spec: "Result is undefined if
x < 0. Result is undefined if x = 0 and y <= 0." So we need to
handle negative x values specifically.

Diff Detail

Event Timeline

antiagainst created this revision.Jun 14 2022, 6:13 PM
antiagainst requested review of this revision.Jun 14 2022, 6:13 PM
ThomasRaoux accepted this revision.Jun 14 2022, 6:27 PM
This revision is now accepted and ready to land.Jun 14 2022, 6:27 PM
This revision was landed with ongoing or failed builds.Jun 14 2022, 8:03 PM
This revision was automatically updated to reflect the committed changes.