blob: 514ba5b91308b0b0d6ed5b26f6c05b2131c59112 [file] [log] [blame]
Sirish Pandef8e5e3c2012-05-03 21:52:53 +00001; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2; Check that we generate integer multiply accumulate.
3
Krzysztof Parzyszek952d9512015-04-22 21:17:00 +00004; CHECK: r{{[0-9]+}} {{\+|\-}}= mpyi(r{{[0-9]+}},
Sirish Pandef8e5e3c2012-05-03 21:52:53 +00005
6define i32 @main(i32* %a, i32* %b) nounwind {
7 entry:
David Blaikiea79ac142015-02-27 21:17:42 +00008 %0 = load i32, i32* %a, align 4
Sirish Pandef8e5e3c2012-05-03 21:52:53 +00009 %div = udiv i32 %0, 10000
10 %rem = urem i32 %div, 10
11 store i32 %rem, i32* %b, align 4
12 ret i32 0
13}
14