On Tue, Feb 07, 2017 at 08:39:22PM +0100, Rasmus Villemoes wrote: > On Tue, Feb 07 2017, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > > > int smulm1(int a) { return a * -1; } > > u32 umulm1(u32 a) { return a * (u32) -1; } > > +int sdivm1(int a) { return a * -1; } > > You probably meant / rather than *. Indeed, nice catch. Thanks. > Also, shouldn't you also add a test that > when a is unsigned, a/-1 does _not_ get transformed to -a? Hummm , yes but ... well, I'll see what I can do. Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html