The same product, written twice

Compiled with -O2, how many multiply instructions computing a * b end up in the generated machine code?

main.cpp
int f(int a, int b, int c) {
    int x = a * b + c;
    int y = a * b - c;
    return x * y;
}

9 of 44 in Compilers