1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; Check that we generate integer multiply accumulate.
4 ; CHECK: r{{[0-9]+}} {{\+|\-}}= mpyi(r{{[0-9]+}},
6 define i32 @f0(i32* %a0, i32* %a1) #0 {
8 %v0 = load i32, i32* %a0, align 4
9 %v1 = udiv i32 %v0, 10000
10 %v2 = urem i32 %v1, 10
11 store i32 %v2, i32* %a1, align 4
15 attributes #0 = { nounwind "target-cpu"="hexagonv5" }