Closed Meinersbur closed 7 years ago
Thank you
Thanks everyone :)
Re: patch fb8b597, converting from unsigned to signed is implementation defined behavior in the case this patch is trying to fix. See "6.3.1.3 Signed and unsigned integers" in the C99 standard. The only portable way to do this is to explicitly check for (mp_usmall )MP_SMALL_MIN
.
Some operations are defined only unsigned integers because they mess with the signed bit.
Found using undefined behavior sanitizer on Polly.
Reported by Matthias Krüger matthias.krueger@famsik.de https://bugs.llvm.org/show_bug.cgi?id=33197