The current expand pattern for math.round does not handle the
special values -0.0, +-inf, and +-nan correctly. It also does not
properly handle values with magnitude |x| >= 2^23. Lastly, the pattern
generates invalid IR when the input to math.round is a vector. This
patch fixes these issues.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/Math/expand-math.mlir | ||
---|---|---|
196 | If support for f64 is needed, I'm happy to add that. |
If support for f64 is needed, I'm happy to add that.