Go to file
Bob Wilson a7a61e2701 Make clz/ctz builtins defined for zero on ARM targets. rdar://10732455
ARM supports clz and ctz directly and both operations have well-defined
results for zero.  There is no disadvantage in performance to using the
defined-at-zero versions of llvm.ctlz/cttz intrinsics.  We're running into
ARM-specific code written with the assumption that __builtin_clz(0) == 32,
even though that value is technically undefined.  The code is failing now
because of llvm optimizations that are taking advantage of the undef
behavior (specifically svn r147255).  There's nothing wrong with that
optimization on x86 where any incorrect assumptions about __builtin_clz(0)
will quickly be exposed.  For ARM, though, optimizations based on that undef
behavior are likely to cause subtle bugs.  Other targets with defined-at-zero
clz/ctz support may want to override the default behavior as well.

llvm-svn: 149086
2012-01-26 22:14:27 +00:00
clang Make clz/ctz builtins defined for zero on ARM targets. rdar://10732455 2012-01-26 22:14:27 +00:00
compiler-rt Darwin-specific templates for the output tests. 2012-01-26 17:40:18 +00:00
debuginfo-tests Revert previous patch as the corresponding clang patch was reverted. 2012-01-26 07:01:33 +00:00
libclc Update repository paths. 2012-01-08 22:31:18 +00:00
libcxx Fix .PHONY target to match new installheaders target. 2012-01-21 06:16:39 +00:00
libcxxabi These commits are intended to be temporary in nature and are to facilitate the testing of libc++abi.dylib at this point in time. 2012-01-25 19:27:42 +00:00
lld First chunk of native object file reader/writer. The lld-core tool now reads YAML file, links, writes that out as native object format, then reads that native file, then writes the YAML to stdout. Thus the test suite tests both YAML reading/writing as well as native object file reading/writing. 2012-01-16 22:03:44 +00:00
lldb Fixed formats being able to be applied recursively when using: 2012-01-26 21:08:30 +00:00
llvm Use -H on darwin as well. 2012-01-26 22:06:23 +00:00
polly Remove unneeded default case 2012-01-26 19:53:01 +00:00