OLD | NEW |
1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s | 1 ; RUIN: %llvm2ice -verbose inst %s | FileCheck %s |
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s | 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
4 | 4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| 5 ; RUN: | FileCheck --check-prefix=DUMP %s |
5 | 6 |
6 define i64 @add_args_i64(i64 %arg1, i64 %arg2) { | 7 define i64 @add_args_i64(i64 %arg1, i64 %arg2) { |
7 entry: | 8 entry: |
8 %add = add i64 %arg2, %arg1 | 9 %add = add i64 %arg2, %arg1 |
9 ret i64 %add | 10 ret i64 %add |
10 } | 11 } |
11 | 12 |
12 ; Checks for verbose instruction output | 13 ; Checks for verbose instruction output |
13 | 14 |
14 ; CHECK: define i64 @add_args | 15 ; CHECK: define i64 @add_args |
(...skipping 10 matching lines...) Expand all Loading... |
25 | 26 |
26 ; CHECK: .globl add_args_i32 | 27 ; CHECK: .globl add_args_i32 |
27 ; CHECK: mov eax, dword ptr [esp+4] | 28 ; CHECK: mov eax, dword ptr [esp+4] |
28 ; CHECK-NEXT: mov ecx, dword ptr [esp+8] | 29 ; CHECK-NEXT: mov ecx, dword ptr [esp+8] |
29 ; CHECK-NEXT: add ecx, eax | 30 ; CHECK-NEXT: add ecx, eax |
30 ; CHECK-NEXT: mov eax, ecx | 31 ; CHECK-NEXT: mov eax, ecx |
31 ; CHECK-NEXT: ret | 32 ; CHECK-NEXT: ret |
32 | 33 |
33 ; ERRORS-NOT: ICE translation error | 34 ; ERRORS-NOT: ICE translation error |
34 ; DUMP-NOT: SZ | 35 ; DUMP-NOT: SZ |
OLD | NEW |