1; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2; CHECK: += mpyi
3
4define void @foo(i32 %acc, i32 %num, i32 %num2) nounwind {
5entry:
6  %acc.addr = alloca i32, align 4
7  %num.addr = alloca i32, align 4
8  %num2.addr = alloca i32, align 4
9  store i32 %acc, i32* %acc.addr, align 4
10  store i32 %num, i32* %num.addr, align 4
11  store i32 %num2, i32* %num2.addr, align 4
12  %0 = load i32, i32* %num.addr, align 4
13  %1 = load i32, i32* %acc.addr, align 4
14  %mul = mul nsw i32 %0, %1
15  %2 = load i32, i32* %num2.addr, align 4
16  %add = add nsw i32 %mul, %2
17  store i32 %add, i32* %num.addr, align 4
18  ret void
19}
20