optimization/8178: __builtin_ffs broken

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Fri Apr 18 16:24:00 GMT 2003


reichelt@igpm.rwth-aachen.de writes:

> Synopsis: __builtin_ffs broken
> 
> State-Changed-From-To: analyzed->closed
> State-Changed-By: reichelt
> State-Changed-When: Fri Apr 18 15:36:52 2003
> State-Changed-Why:
>     Fixed in gcc 3.2 branch, 3.3 branch and mainline.

It still doesn't work for me on mainline with -march=k6:

% cat ffs.c
int f(int x) { return __builtin_ffs(x); }

% /tmp/bla/bin/gcc -v 
Reading specs from /usr/tmp/bla/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.4/specs
Configured with: ./configure --enable-languages=c --disable-nls
Thread model: posix
gcc version 3.4 20030415 (experimental)
% /tmp/bla/bin/gcc -c ffs.c 
% /tmp/bla/bin/gcc -c -march=k6 ffs.c
ffs.c: In function `f':
ffs.c:1: error: unrecognizable insn:
(insn 26 22 27 0 0x401705d8 (parallel [
            (set (reg:SI 1 edx)
                (const_int 0 [0x0]))
            (clobber (reg:CC 17 flags))
        ]) -1 (nil)
    (nil))
ffs.c:1: internal compiler error: in extract_insn, at recog.c:2188
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
	Falk



More information about the Gcc-bugs mailing list