code gen below binarycomp
merged