Fix inline assembly

Tie input registers to output variable to follow gcc documentation: Do not
modify the contents of input-only operands (except for inputs tied to outputs).