Nevermind, I've found it. The compiler checks whether the provided div pattern returns a quotient and otherwise falls back to a library call. Thanks, Hendrik On Wed, Apr 17, 2013 at 9:26 AM, Hendrik Greving <hendrik.greving.intel@xxxxxxxxx> wrote: > Hi, > > this might apply to older GCC versions only (not sure). I am using GCC > 3.2.x. My question is, how do I configure and re-target GCC to expand > a divide (e.g. divdi3) with define_expand("divdi3") instead of > generating a libgcc library call to __divdi3? Any help tips > appreciated. > > Thanks, Regards, > Hendrik Greving