int sum(int a, int b) { int ans; ans = a + b; return ans; }
Assignment typically uses the mov instruction.
Addition is the addl instruction.