[PATCH] D49754: Add -m(no-)spe, and e500 CPU definitions and support to clang

vit9696 via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 20 22:30:42 PST 2019


vit9696 added a comment.

Justin, I am currently testing the latest patches, yet so far it looks very good. Thanks.
I rechecked GCC, and it seems that it forces 64-bit long double for SPE regardless of the target.
Could you please force that in LLVM as well? While imperfect, I currently changed the following part of code in clang/lib/Basic/Targets/PPC.cpp, and it seems to work for the needs:

  } else if (Feature == "+spe") {
    HasSPE = true;
    LongDoubleWidth = LongDoubleAlign = 64;
    LongDoubleFormat = &llvm::APFloat::IEEEdouble();
  }


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49754/new/

https://reviews.llvm.org/D49754





More information about the cfe-commits mailing list