Groverkss wrote: Maybe the implementation is wrong then. When this op was added, it was supposed to be similar to the cuda op: https://developer.download.nvidia.com/cg/clamp.html which discribes it as max(min()) https://github.com/llvm/llvm-project/pull/175012