OLD | NEW |
1 ; Trivial test of a trivial function. | 1 ; Trivial test of a trivial function. |
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 void @foo() { | 7 define void @foo() { |
10 ; CHECK: define void @foo() | 8 ; CHECK: define void @foo() |
11 entry: | 9 entry: |
12 ret void | 10 ret void |
13 ; CHECK: entry | 11 ; CHECK: entry |
14 ; CHECK-NEXT: ret void | 12 ; CHECK-NEXT: ret void |
15 } | 13 } |
16 | 14 |
17 ; ERRORS-NOT: ICE translation error | 15 ; ERRORS-NOT: ICE translation error |
18 ; DUMP-NOT: SZ | 16 ; DUMP-NOT: SZ |
OLD | NEW |