[Bug libgcc/78067] liggcc2 calls count_leading_zero with 0

2016-11-03 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78067 Bernd Edlinger changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libgcc/78067] liggcc2 calls count_leading_zero with 0

2016-11-03 Thread edlinger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78067 --- Comment #3 from Bernd Edlinger --- Author: edlinger Date: Thu Nov 3 12:52:19 2016 New Revision: 241817 URL: https://gcc.gnu.org/viewcvs?rev=241817&root=gcc&view=rev Log: 2016-11-03 Bernd Edlinger PR libgcc/78067 * libgcc

[Bug libgcc/78067] liggcc2 calls count_leading_zero with 0

2016-10-21 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78067 --- Comment #2 from Bernd Edlinger --- This happens with __floattisf and __floattidf in 64bit libgcc. But because a bsr $rsi,$rsi is used, apparently the result register is zero, when the input is zero and not completely undefined. Thus __float

[Bug libgcc/78067] liggcc2 calls count_leading_zero with 0

2016-10-21 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78067 --- Comment #1 from Bernd Edlinger --- I think in the case of x86 longlong.h does not define COUNT_LEADING_ZEROS_0 but nevertheless count_leading_zero is defined to __builtin_clz and seems to return the correct result, but I don't know if that wi