[PATCH 2/4] [PPC64LE] Update the DescriptionString for PPC64LE (clang)

Chandler Carruth chandlerc at google.com
Tue Mar 11 13:08:27 PDT 2014


This could probably use a basic test case.


On Tue, Mar 11, 2014 at 12:54 PM, Will Schmidt <will_schmidt at vnet.ibm.com>wrote:

> Add a stanza for the ppc64le target, and update the
> DescriptionString for PPC64LE.
> ---
>  tools/clang/lib/Basic/Targets.cpp |    9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/tools/clang/lib/Basic/Targets.cpp
> b/tools/clang/lib/Basic/Targets.cpp
> index 339a5d2..93db187 100644
> --- a/tools/clang/lib/Basic/Targets.cpp
> +++ b/tools/clang/lib/Basic/Targets.cpp
> @@ -1246,8 +1246,13 @@ public:
>        LongDoubleWidth = LongDoubleAlign = 64;
>        LongDoubleFormat = &llvm::APFloat::IEEEdouble;
>        DescriptionString = "E-m:e-i64:64-n32:64";
> -    } else
> -      DescriptionString = "E-m:e-i64:64-n32:64";
> +    } else {
> +      if ((Triple.getArch() == llvm::Triple::ppc64le)) {
> +        DescriptionString = "e-m:e-i64:64-n32:64";
> +      } else {
> +        DescriptionString = "E-m:e-i64:64-n32:64";
> +      }
> +}
>
>      // PPC64 supports atomics up to 8 bytes.
>      MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/79b0c9ec/attachment.html>


More information about the cfe-commits mailing list