fix subtle bugs in inline asm operand selection