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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D127816
[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
Diff Detail
Event TimelineThis 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 Closed by commit rG06c6758a9816: [mlir][spirv] Handle corner cases for math.powf conversion (authored by antiagainst). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 436990 mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
mlir/test/Conversion/MathToSPIRV/math-to-glsl-spirv.mlir
|