This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]