Legalize type of ATOMIC_CMP_SWAP