[all-commits] [llvm/llvm-project] 9019b5: [PowerPC] Fix byte ordering of ld/st with length o...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri Jul 30 12:38:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9019b55b605a26cb5389399eceb34fa9ea55550f
      https://github.com/llvm/llvm-project/commit/9019b55b605a26cb5389399eceb34fa9ea55550f
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M clang/lib/Headers/altivec.h
    M clang/test/CodeGen/builtins-ppc-ld-st-rmb.c
    M clang/test/CodeGen/builtins-ppc-p9vector.c

  Log Message:
  -----------
  [PowerPC] Fix byte ordering of ld/st with length on BE

The builtins vec_xl_len_r and vec_xst_len_r actually use the
wrong side of the vector on big endian Power9 systems. We never
spotted this before because there was no such thing as a big
endian distro that supported Power9. Now we have AIX and the
elements are in the wrong part of the vector. This just fixes
it so the elements are loaded to and stored from the right
side of the vector.




More information about the All-commits mailing list