This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/8178] [3.4 regression] __builtin_ffs broken with -march=k6
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2003 15:34:02 -0000
- Subject: [Bug optimization/8178] [3.4 regression] __builtin_ffs broken with -march=k6
- References: <20021009170600.8178.christianbiere@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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).