OLD | NEW |
1 ; Simple test of functions returning one of its arguments. | 1 ; Simple test of functions returning one of its arguments. |
2 | 2 |
3 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s | 3 ; RUN: %p2i -i %s --args --verbose inst | FileCheck %s |
4 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 4 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
5 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 5 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
6 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | |
7 ; RUN: | FileCheck --check-prefix=DUMP %s | |
8 | 6 |
9 define i32 @func_single_arg(i32 %a) { | 7 define i32 @func_single_arg(i32 %a) { |
10 ; CHECK: define i32 @func_single_arg | 8 ; CHECK: define i32 @func_single_arg |
11 entry: | 9 entry: |
12 ret i32 %a | 10 ret i32 %a |
13 ; CHECK: ret i32 %a | 11 ; CHECK: ret i32 %a |
14 } | 12 } |
15 | 13 |
16 define i32 @func_multiple_args(i32 %a, i32 %b, i32 %c) { | 14 define i32 @func_multiple_args(i32 %a, i32 %b, i32 %c) { |
17 ; CHECK: func_multiple_args | 15 ; CHECK: func_multiple_args |
18 entry: | 16 entry: |
19 ret i32 %c | 17 ret i32 %c |
20 ; CHECK: ret i32 %c | 18 ; CHECK: ret i32 %c |
21 } | 19 } |
22 | 20 |
23 ; ERRORS-NOT: ICE translation error | 21 ; ERRORS-NOT: ICE translation error |
24 ; DUMP-NOT: SZ | 22 ; DUMP-NOT: SZ |
OLD | NEW |