Avoid accuracy loss in or/xor tests