blob: eced214983fb4ec2d17dfe70233f9e358c245dd6 [file] [log] [blame]
Jim Stichnoth5bc2b1d2014-05-22 13:38:48 -07001; Simple test of functions returning one of its arguments.
2
Karl Schimpf2a5324a2014-09-25 09:37:49 -07003; RUN: %p2i -i %s --args --verbose inst | FileCheck %s
4; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
5; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
Jim Stichnothf7c9a142014-04-29 10:52:43 -07006
7define i32 @func_single_arg(i32 %a) {
8; CHECK: define i32 @func_single_arg
9entry:
10 ret i32 %a
11; CHECK: ret i32 %a
12}
13
14define i32 @func_multiple_args(i32 %a, i32 %b, i32 %c) {
15; CHECK: func_multiple_args
16entry:
17 ret i32 %c
18; CHECK: ret i32 %c
19}
20
21; ERRORS-NOT: ICE translation error
22; DUMP-NOT: SZ