codegen for gt and ne