On Mon, Oct 05, 2020 at 10:36:22AM -0500, Segher Boessenkool wrote: > Should this pattern not allow setting more than one exception bit at > once, btw?
Turns out allowing more than one bit was no problem at all. On Mon, Oct 05, 2020 at 10:36:22AM -0500, Segher Boessenkool wrote: > On Sun, Oct 04, 2020 at 09:56:01PM -0400, Hans-Peter Nilsson wrote: > > > > + rtx tmp = gen_rtx_CONST_INT (SImode, __builtin_clz (INTVAL > > > > (operands[1]))); > > > > This doesn't appear to be very portable, to any-cxx11-compiler > > that doesn't pretend to be gcc-intrinsics-compatible. > > Yeah, very good point! And with that, no ffs() or clz() necessary at all :)