[all-commits] [llvm/llvm-project] 5c8d30: Fix complex types declared using mode TC

elizabethandrews via All-commits all-commits at lists.llvm.org
Tue Nov 2 12:01:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c8d3053fa0c183ea4f908e51a111ada3d4031f2
      https://github.com/llvm/llvm-project/commit/5c8d3053fa0c183ea4f908e51a111ada3d4031f2
  Author: Elizabeth Andrews <elizabeth.andrews at intel.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M clang/lib/Basic/TargetInfo.cpp
    A clang/test/CodeGenCXX/complex128.cpp

  Log Message:
  -----------
  Fix complex types declared using mode TC

This patch reverts incorrect IR introduced in commit d11ec6f67e45
[Clang] Enable IC/IF mode for __ibm128, for complex types declared
using __attribute__((mode(TC))). TC corresponds to an unspecified
128-bit format, which on some targets is a double-double format
(like __ibm128_t) and on others is float128_t. The bug in d11ec6f67e45
is that long double is only safe to use when it's known to be one of
these formats.

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




More information about the All-commits mailing list