We noticed this same issue in our own implementation of abs_diff, and
the same issue also came up in the abs_diff reference function in the
OpenCL CTS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
clspv is also implementing abs_diff like that, and it is OpenCL compliant:
https://github.com/google/clspv/blob/b14ef325ef31894b0aaeca9a84e65b10ae53a816/lib/ReplaceOpenCLBuiltinPass.cpp#L1148
https://godbolt.org/z/x7vzd85os