OLD | NEW |
1 ; Simple test of the store instruction. | 1 ; Simple test of the store instruction. |
2 | 2 |
3 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s | 3 ; TODO(kschimpf) Find out why lc2i is needed, and fix. |
4 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 4 ; RUN: %lc2i -i %s --args --verbose inst | FileCheck %s |
5 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 5 ; RUN: %lc2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
6 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 6 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s |
7 ; RUN: | FileCheck --check-prefix=DUMP %s | |
8 | 7 |
9 define void @store_i64(i32 %addr_arg) { | 8 define void @store_i64(i32 %addr_arg) { |
10 entry: | 9 entry: |
11 %__1 = inttoptr i32 %addr_arg to i64* | 10 %__1 = inttoptr i32 %addr_arg to i64* |
12 store i64 1, i64* %__1, align 1 | 11 store i64 1, i64* %__1, align 1 |
13 ret void | 12 ret void |
14 | 13 |
15 ; CHECK: Initial CFG | 14 ; CHECK: Initial CFG |
16 ; CHECK: %__1 = i32 %addr_arg | 15 ; CHECK: %__1 = i32 %addr_arg |
17 ; CHECK-NEXT: store i64 1, {{.*}}, align 1 | 16 ; CHECK-NEXT: store i64 1, {{.*}}, align 1 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ret void | 48 ret void |
50 | 49 |
51 ; CHECK: Initial CFG | 50 ; CHECK: Initial CFG |
52 ; CHECK: %__1 = i32 %addr_arg | 51 ; CHECK: %__1 = i32 %addr_arg |
53 ; CHECK-NEXT: store i8 1, {{.*}}, align 1 | 52 ; CHECK-NEXT: store i8 1, {{.*}}, align 1 |
54 ; CHECK-NEXT: ret void | 53 ; CHECK-NEXT: ret void |
55 } | 54 } |
56 | 55 |
57 ; ERRORS-NOT: ICE translation error | 56 ; ERRORS-NOT: ICE translation error |
58 ; DUMP-NOT: SZ | 57 ; DUMP-NOT: SZ |
OLD | NEW |