mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
234d9acfd25aa3b74958e2f1c41e46d483b92d24
On Tue, May 05, 2026 at 02:27:23PM +0800, H.J. Lu wrote: > The new tests failed with -m32 on Linux/x86-64: > > FAIL: gcc.dg/tree-ssa/pr122569-1.c scan-tree-dump forwprop1 > "__builtin_ctz|\\.CTZ" > FAIL: gcc.dg/tree-ssa/pr122569-2.c scan-tree-dump forwprop1 > "__builtin_clz|\\.CLZ" > > Should these tests require int128? They should first of all require ctzll resp. clzll effective targets, if there is a function call for those, then it certainly isn't optimized. The problem is that that isn't enough, ia32 is both ctzll and clzll effective target. That is because we handle double-word __builtin_c[tl]zll by doing 2 word ops and one conditional. The tree-ssa-forwprop.cc optimization is checking for whether it can use IFN_CLZ/IFN_CTZ, and that is not the case, because we only use direct optab for that and don't have the double-word unop fallback for that. Rather than int128 I think it is more natural to test for lp64 || llp64. 2026-05-05 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/122569 * gcc.dg/tree-ssa/pr122569-1.c: Only require __builtin_ctz/.CTZ on ctzll 64-bit targets. * gcc.dg/tree-ssa/pr122569-2.c: Only require __builtin_clz/.CLZ on clzll 64-bit targets. Reviewed-by: Richard Biener <rguenth@suse.de>
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.
Description
Languages
C++
30.7%
C
30.2%
Ada
14.4%
D
6.1%
Go
5.7%
Other
12.4%