[all-commits] [llvm/llvm-project] 3f8aaf: [mlir][tosa] Fix tosa.cast semantics to perform ro...
rsuderman via All-commits
all-commits at lists.llvm.org
Wed May 12 22:00:29 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3f8aafd7902722cc2039c7ef3d6747f8d49f81a6
https://github.com/llvm/llvm-project/commit/3f8aafd7902722cc2039c7ef3d6747f8d49f81a6
Author: Rob Suderman <rob.suderman at gmail.com>
Date: 2021-05-12 (Wed, 12 May 2021)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
Log Message:
-----------
[mlir][tosa] Fix tosa.cast semantics to perform rounding/clipping
Rounding to integers requires rounding (for floating points) and clipping
to the min/max values of the destination range. Added this behavior and
updated tests appropriately.
Reviewed By: sjarus, silvas
Differential Revision: https://reviews.llvm.org/D102375
More information about the All-commits
mailing list