support ternary values in rax2

this works only in one direction for now