Anders Carlsson
1a9fe3d4db
Handle __builtin_clzs and __builtin_ctzs in the constant expression evaluator.
...
llvm-svn: 212464
2014-07-07 15:53:44 +00:00
Richard Smith
ea3019d23a
Add constant evaluation support for __builtin_isinf, __builtin_isfinite,
...
__builtin_isnan, and __builtin_isnormal. Patch by Karthik Bhat! Tests by me.
llvm-svn: 192729
2013-10-15 19:07:14 +00:00
Richard Smith
ab341c62b3
More for PR12457: fix handling of __builtin_isinf_sign and test.
...
llvm-svn: 183890
2013-06-13 06:31:13 +00:00
Richard Smith
8889a3d3b5
Towards PR12457: constant expression evaluation support for __builtin_parity{,l,ll}, __builtin_ffs{,l,ll}, and __builtin_fpclassify.
...
llvm-svn: 183889
2013-06-13 06:26:32 +00:00
Richard Smith
80b3c8e32f
Fix part of PR12457. Patch by Justin Bogner!
...
llvm-svn: 183886
2013-06-13 05:04:16 +00:00
Benjamin Kramer
a801f4a81d
Expose __builtin_bswap16.
...
GCC has always supported this on PowerPC and 4.8 supports it on all platforms,
so it's a good idea to expose it in clang too. LLVM supports this on all targets.
llvm-svn: 165362
2012-10-06 14:42:22 +00:00
Richard Smith
80ac9efec4
Allow __builtin_bswap32/64 in constant expressions, like gcc does. Patch by Tijl Coosemans!
...
llvm-svn: 164841
2012-09-28 20:20:52 +00:00
Douglas Gregor
6a6dac2fbf
Support strlen() and __builtin_strlen() as constant expressions with
...
the call argument is a string literal. Fixes
<rdar://problem/8413477>.
llvm-svn: 113580
2010-09-10 06:27:15 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
Douglas Gregor
bff4e7d180
Fix the type of __builtin_expect, from Ed Schouten!
...
llvm-svn: 85666
2009-10-31 16:04:14 +00:00
Daniel Dunbar
a45cf5b6b0
Rename clang to clang-cc.
...
Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602
2009-03-24 02:24:46 +00:00
Daniel Dunbar
c3d79cf6b3
Teach tryEvaluate that fabs, copysign, and unary +/- are constants for
...
floats.
- With testcase, which also has some other things GCC folds but we
don't commented out in it.
llvm-svn: 57624
2008-10-16 03:51:50 +00:00