Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2021 11:55:28 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 57f6f33bd111 - stable/12 - Disable strict-fp for powerpcspe, as it does not work properly yet
Message-ID:  <202112251155.1BPBtSNf006322@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=57f6f33bd111ff512c0df22104671f3bc85add3d

commit 57f6f33bd111ff512c0df22104671f3bc85add3d
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-06-14 13:47:53 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-12-25 11:51:06 +0000

    Disable strict-fp for powerpcspe, as it does not work properly yet
    
    Merge commit 5c18d1136665 from llvm git (by Qiu Chaofan)
    
      [SPE] Disable strict-fp for SPE by default
    
      As discussed in PR50385, strict-fp on PowerPC SPE has not been
      handled well. This patch disables it by default for SPE.
    
      Reviewed By: nemanjai, vit9696, jhibbits
    
      Differential Revision: https://reviews.llvm.org/D103235
    
    PR:             255570
    MFC after:      6 weeks
    
    (cherry picked from commit 715df83abc049b23d9acddc81f2480bd4c056d64)
---
 contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp
index ff09c0fa2a23..6c3036836c6d 100644
--- a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp
+++ b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.cpp
@@ -57,6 +57,7 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
     } else if (Feature == "+pcrelative-memops") {
       HasPCRelativeMemops = true;
     } else if (Feature == "+spe" || Feature == "+efpu2") {
+      HasStrictFP = false;
       HasSPE = true;
       LongDoubleWidth = LongDoubleAlign = 64;
       LongDoubleFormat = &llvm::APFloat::IEEEdouble();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112251155.1BPBtSNf006322>