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

Will Schmidt will_schmidt at vnet.ibm.com
Wed Mar 12 08:26:48 PDT 2014


On Tue, 2014-03-11 at 13:08 -0700, Chandler Carruth wrote:
> This could probably use a basic test case.

On Tue, 2014-03-11 at 16:10 -0400, Rafael EspĂ­ndola wrote:
> a testcase would be nice.

Noted.   :-)   I'll get testcases built up for this and the other
patches.   Thanks, 

-Will


> 
> 
> 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
> 
> 





More information about the cfe-commits mailing list