support ternary values in rax2