[all-commits] [llvm/llvm-project] 37a3de: libclc: Fix signed integer underflow in abs_diff

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Aug 31 06:28:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37a3de1e2eedf848b8442217ef3790436f69a7db
      https://github.com/llvm/llvm-project/commit/37a3de1e2eedf848b8442217ef3790436f69a7db
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M libclc/generic/lib/integer/abs_diff.inc

  Log Message:
  -----------
  libclc: Fix signed integer underflow in abs_diff

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.

Reviewed By: rjodinchr

Differential Revision: https://reviews.llvm.org/D159275




More information about the All-commits mailing list