1 ; This should be one add and two multiplies.
3 ; RUN: llvm-upgrade < %s | llvm-as | \
4 ; RUN: opt -reassociate -instcombine | llvm-dis > %t
5 ; RUN: grep mul %t | count 2
6 ; RUN: grep add %t | count 1
8 int %test(int %A, int %B, int %C) {
10 %aab = mul int %aa, %B
13 %aac = mul int %ac, %A
14 %r = add int %aab, %aac