git: 715df83abc04 - main - Disable strict-fp for powerpcspe, as it does not work properly yet

Dimitry Andric dim at FreeBSD.org
Mon Jun 14 16:10:34 UTC 2021


The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=715df83abc049b23d9acddc81f2480bd4c056d64

commit 715df83abc049b23d9acddc81f2480bd4c056d64
Author:     Dimitry Andric <dim at FreeBSD.org>
AuthorDate: 2021-06-14 13:47:53 +0000
Commit:     Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-06-14 16:10:03 +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
---
 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();


More information about the dev-commits-src-all mailing list