[all-commits] [llvm/llvm-project] fad14a: [PowerPC] Truncate element index for vec_insert in...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Thu Sep 30 03:58:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fad14a17a490b1825b0c7c40ace7e83c91af4b8a
      https://github.com/llvm/llvm-project/commit/fad14a17a490b1825b0c7c40ace7e83c91af4b8a
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-09-30 (Thu, 30 Sep 2021)

  Changed paths:
    M clang/lib/Headers/altivec.h

  Log Message:
  -----------
  [PowerPC] Truncate element index for vec_insert in altivec.h

When a user specifies an out-of-range index for vec_insert, we
just produce IR that has undefined behaviour even though the
documentation states that modulo arithmetic is used. This patch
just truncates the value to a valid index.




More information about the All-commits mailing list