On Tue, Nov 08, 2016 at 11:00:29AM +0100, Goswin von Brederlow wrote: > What I don't get is why this ihappens only on ppc64le. For it to > consistently return 0 there has to be some check in there for negative > values. But that check is only present in some specialized ppc64le > code? Seems like something the generic code for all archs should > already have. > > Just out of interest: So what's so special about ppc64le that checking > for negatives is present just there? Undefined behaviour means anything could happen. Attached are the ppc64 & ppc64le disassemblies for this function if you want to have a look. Rich.