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 @add_reg(i32 %a, i32 %b) nounwind {
5entry:
6; CHECK: add_reg:
7; CHECK:   add r2, r4, r5
8  %c = add i32 %a, %b
9  ret i32 %c
10}
11
12define i32 @sub_reg(i32 %a, i32 %b) nounwind {
13entry:
14; CHECK: sub_reg:
15; CHECK:   sub r2, r4, r5
16  %c = sub i32 %a, %b
17  ret i32 %c
18}
19
20