[Bug optimization/8178] [3.4 regression] __builtin_ffs broken with -march=k6

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 28 15:34:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8178



------- Additional Comments From reichelt at gcc dot gnu dot org  2003-08-28 15:34 -------
The testcase

-----------------------------------------
int main() { return __builtin_ffs(4); }
-----------------------------------------

now works on mainline even with -march=k6.
This is probably due to Rogers patch

http://gcc.gnu.org/ml/gcc-cvs/2003-08/msg00818.html

Alas, the following code snippet still fails with -march=k6:

-----------------------------------------
int i=4;
int main() { return __builtin_ffs(i); }
-----------------------------------------

The tests ffs-1.c and ffs-2.c from the testsuite also still fail.

Phil's regression tester says:
Search converges between 2003-02-04-trunk (#213) and 2003-02-05-trunk (#214).



More information about the Gcc-bugs mailing list