[PATCH openEuler-5.10-LTS 013/137] x86/alternative: Support ALTERNATIVE_TERNARY