Jim Stichnoth | 5bc2b1d | 2014-05-22 13:38:48 -0700 | [diff] [blame] | 1 | ; Simple test of functions returning one of its arguments. |
| 2 | |
Karl Schimpf | 2a5324a | 2014-09-25 09:37:49 -0700 | [diff] [blame^] | 3 | ; 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 Stichnoth | f7c9a14 | 2014-04-29 10:52:43 -0700 | [diff] [blame] | 6 | |
| 7 | define i32 @func_single_arg(i32 %a) { |
| 8 | ; CHECK: define i32 @func_single_arg |
| 9 | entry: |
| 10 | ret i32 %a |
| 11 | ; CHECK: ret i32 %a |
| 12 | } |
| 13 | |
| 14 | define i32 @func_multiple_args(i32 %a, i32 %b, i32 %c) { |
| 15 | ; CHECK: func_multiple_args |
| 16 | entry: |
| 17 | ret i32 %c |
| 18 | ; CHECK: ret i32 %c |
| 19 | } |
| 20 | |
| 21 | ; ERRORS-NOT: ICE translation error |
| 22 | ; DUMP-NOT: SZ |