OLD | NEW |
1 ; RUIN: %llvm2ice %s -verbose inst | FileCheck %s | 1 ; RUIN: %llvm2ice %s -verbose inst | 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 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
| 5 ; RUN: | FileCheck --check-prefix=DUMP %s |
4 | 6 |
5 define void @store_i64(i32 %addr_arg) { | 7 define void @store_i64(i32 %addr_arg) { |
6 entry: | 8 entry: |
7 %ptr64 = inttoptr i32 %addr_arg to i64* | 9 %__1 = inttoptr i32 %addr_arg to i64* |
8 store i64 1, i64* %ptr64, align 1 | 10 store i64 1, i64* %__1, align 1 |
9 ret void | 11 ret void |
10 | 12 |
11 ; CHECK: %ptr64 = i32 %addr_arg | 13 ; CHECK: %__1 = i32 %addr_arg |
12 ; CHECK-NEXT: store i64 1, {{.*}}, align 1 | 14 ; CHECK-NEXT: store i64 1, {{.*}}, align 1 |
13 ; CHECK-NEXT: ret void | 15 ; CHECK-NEXT: ret void |
14 } | 16 } |
15 | 17 |
16 define void @store_i32(i32 %addr_arg) { | 18 define void @store_i32(i32 %addr_arg) { |
17 entry: | 19 entry: |
18 %ptr32 = inttoptr i32 %addr_arg to i32* | 20 %__1 = inttoptr i32 %addr_arg to i32* |
19 store i32 1, i32* %ptr32, align 1 | 21 store i32 1, i32* %__1, align 1 |
20 ret void | 22 ret void |
21 | 23 |
22 ; CHECK: %ptr32 = i32 %addr_arg | 24 ; CHECK: %__1 = i32 %addr_arg |
23 ; CHECK-NEXT: store i32 1, {{.*}}, align 1 | 25 ; CHECK-NEXT: store i32 1, {{.*}}, align 1 |
24 ; CHECK-NEXT: ret void | 26 ; CHECK-NEXT: ret void |
25 } | 27 } |
26 | 28 |
27 define void @store_i16(i32 %addr_arg) { | 29 define void @store_i16(i32 %addr_arg) { |
28 entry: | 30 entry: |
29 %ptr16 = inttoptr i32 %addr_arg to i16* | 31 %__1 = inttoptr i32 %addr_arg to i16* |
30 store i16 1, i16* %ptr16, align 1 | 32 store i16 1, i16* %__1, align 1 |
31 ret void | 33 ret void |
32 | 34 |
33 ; CHECK: %ptr16 = i32 %addr_arg | 35 ; CHECK: %__1 = i32 %addr_arg |
34 ; CHECK-NEXT: store i16 1, {{.*}}, align 1 | 36 ; CHECK-NEXT: store i16 1, {{.*}}, align 1 |
35 ; CHECK-NEXT: ret void | 37 ; CHECK-NEXT: ret void |
36 } | 38 } |
37 | 39 |
38 define void @store_i8(i32 %addr_arg) { | 40 define void @store_i8(i32 %addr_arg) { |
39 entry: | 41 entry: |
40 %ptr8 = inttoptr i32 %addr_arg to i8* | 42 %__1 = inttoptr i32 %addr_arg to i8* |
41 store i8 1, i8* %ptr8, align 1 | 43 store i8 1, i8* %__1, align 1 |
42 ret void | 44 ret void |
43 | 45 |
44 ; CHECK: %ptr8 = i32 %addr_arg | 46 ; CHECK: %__1 = i32 %addr_arg |
45 ; CHECK-NEXT: store i8 1, {{.*}}, align 1 | 47 ; CHECK-NEXT: store i8 1, {{.*}}, align 1 |
46 ; CHECK-NEXT: ret void | 48 ; CHECK-NEXT: ret void |
47 } | 49 } |
48 | 50 |
49 ; ERRORS-NOT: ICE translation error | 51 ; ERRORS-NOT: ICE translation error |
50 ; DUMP-NOT: SZ | 52 ; DUMP-NOT: SZ |
OLD | NEW |