Add a thumb2 pass to insert IT blocks.
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-mla.ll
1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {mla\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]} | count 2
2
3 define i32 @f1(i32 %a, i32 %b, i32 %c) {
4     %tmp1 = mul i32 %a, %b
5     %tmp2 = add i32 %c, %tmp1
6     ret i32 %tmp2
7 }
8
9 define i32 @f2(i32 %a, i32 %b, i32 %c) {
10     %tmp1 = mul i32 %a, %b
11     %tmp2 = add i32 %tmp1, %c
12     ret i32 %tmp2
13 }