1; RUN: llc < %s -march=nios2 2>&1 | FileCheck %s
2; RUN: llc < %s -march=nios2 -target-abi=nios2r2 2>&1 | FileCheck %s
3
4define i32 @mul_reg(i32 %a, i32 %b) nounwind {
5entry:
6; CHECK: mul_reg:
7; CHECK:   mul r2, r4, r5
8  %c = mul i32 %a, %b
9  ret i32 %c
10}
11
12define i32 @div_signed(i32 %a, i32 %b) nounwind {
13entry:
14; CHECK: div_signed:
15; CHECK:   div r2, r4, r5
16  %c = sdiv i32 %a, %b
17  ret i32 %c
18}
19
20define i32 @div_unsigned(i32 %a, i32 %b) nounwind {
21entry:
22; CHECK: div_unsigned:
23; CHECK:   divu r2, r4, r5
24  %c = udiv i32 %a, %b
25  ret i32 %c
26}
27
28