gen code for dispatch/arith/eq