[mlir][tosa] Fix clamp float lowering
authorThomas Raoux <thomasraoux@google.com>
Mon, 15 Aug 2022 21:59:54 +0000 (21:59 +0000)
committerThomas Raoux <thomasraoux@google.com>
Mon, 15 Aug 2022 22:25:14 +0000 (22:25 +0000)
commit444b4fda17bca581fab084926b91393bd20478e7
tree8adc6f510c553ea9469b9e9ac3bbc642d49d4b73
parent73f0ca806e66406cbd34006959b203628209cd72
[mlir][tosa] Fix clamp float lowering

min and max were mixed up after switching to using float min/max

Differential Revision: https://reviews.llvm.org/D131923
mlir/lib/Dialect/Tosa/Utils/ConversionUtils.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir