testcase? Please make sure Daniel Sanders applies for commit access.
On 15 August 2013 08:16, Jack Carter <[email protected]> wrote: > Author: jacksprat > Date: Thu Aug 15 10:16:57 2013 > New Revision: 188464 > > URL: http://llvm.org/viewvc/llvm-project?rev=188464&view=rev > Log: > [Mips][msa] Add support for half > > Add support for half (a.k.a. __fp16) in builtin descriptions. > The second argument to BUILTIN() now accepts 'h' to represent half. > > Patch by Daniel Sanders > > Modified: > cfe/trunk/include/clang/Basic/Builtins.def > cfe/trunk/lib/AST/ASTContext.cpp > > Modified: cfe/trunk/include/clang/Basic/Builtins.def > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=188464&r1=188463&r2=188464&view=diff > ============================================================================== > --- cfe/trunk/include/clang/Basic/Builtins.def (original) > +++ cfe/trunk/include/clang/Basic/Builtins.def Thu Aug 15 10:16:57 2013 > @@ -25,6 +25,7 @@ > // c -> char > // s -> short > // i -> int > +// h -> half > // f -> float > // d -> double > // z -> size_t > > Modified: cfe/trunk/lib/AST/ASTContext.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=188464&r1=188463&r2=188464&view=diff > ============================================================================== > --- cfe/trunk/lib/AST/ASTContext.cpp (original) > +++ cfe/trunk/lib/AST/ASTContext.cpp Thu Aug 15 10:16:57 2013 > @@ -7552,6 +7552,11 @@ static QualType DecodeTypeFromStr(const > "Bad modifiers used with 'v'!"); > Type = Context.VoidTy; > break; > + case 'h': > + assert(HowLong == 0 && !Signed && !Unsigned && > + "Bad modifiers used with 'f'!"); > + Type = Context.HalfTy; > + break; > case 'f': > assert(HowLong == 0 && !Signed && !Unsigned && > "Bad modifiers used with 'f'!"); > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
