https://github.com/shahidact approved this pull request. Mostly looks good, a general observation is that the values in LUT in the tests seems "monotonic increasing". If this is not the case, then having such a test case would be great. https://github.com/llvm/llvm-project/pull/190321