[all-commits] [llvm/llvm-project] 6b1341: [PowerPC] [Clang] Fix alignment of 128-bit float t...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Wed Nov 18 22:29:54 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b1341eb5bb71a1ce4547165a247b23bb30ef44e
      https://github.com/llvm/llvm-project/commit/6b1341eb5bb71a1ce4547165a247b23bb30ef44e
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    A clang/test/CodeGen/ppc64le-varargs-f128.c

  Log Message:
  -----------
  [PowerPC] [Clang] Fix alignment of 128-bit float types

According to ELF v2 ABI, both IEEE 128-bit and IBM extended floating
point variables should be quad-word (16 bytes) aligned. Previously, only
vector types are considered aligned as quad-word on PowerPC.

This patch will fix incorrectness of IEEE 128-bit float argument in
va_arg cases.

Reviewed By: rjmccall

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




More information about the All-commits mailing list