[all-commits] [llvm/llvm-project] ee703b: [clang][PowerPC] PPC64 VAArg fix right-alignment f...

Ting Wang via All-commits all-commits at lists.llvm.org
Sun Oct 16 19:03:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee703b5cb134d182c2b589360714feab97f6a1cc
      https://github.com/llvm/llvm-project/commit/ee703b5cb134d182c2b589360714feab97f6a1cc
  Author: Ting Wang <Ting.Wang.SH at ibm.com>
  Date:   2022-10-16 (Sun, 16 Oct 2022)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGen/PowerPC/ppc64-align-struct.c

  Log Message:
  -----------
  [clang][PowerPC] PPC64 VAArg fix right-alignment for aggregates fit in register

PPC64 ABI pass aggregates smaller than a register into the least
significant bits of the register. In the case of variadic functions,
they will end up right-aligned in their argument slots in the argument
area on big-endian targets. Apply right-alignment for these aggregates.

Fixes #55900.

Reviewed By: rjmccall

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




More information about the All-commits mailing list