OLD | NEW |
1 ; Test if we can read store instructions. | 1 ; Test if we can read store instructions. |
2 | 2 |
3 ; RUN: llvm-as < %s | pnacl-freeze \ | 3 ; RUN: %p2i -i %s --insts --no-local-syms | FileCheck %s |
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ | |
5 ; RUN: -allow-pnacl-reader-error-recovery \ | |
6 ; RUN: | FileCheck %s | |
7 | 4 |
8 define void @store_i8(i32 %addr) { | 5 define void @store_i8(i32 %addr) { |
9 entry: | 6 entry: |
10 %addr_i8 = inttoptr i32 %addr to i8* | 7 %addr_i8 = inttoptr i32 %addr to i8* |
11 store i8 3, i8* %addr_i8, align 1 | 8 store i8 3, i8* %addr_i8, align 1 |
12 ret void | 9 ret void |
13 | 10 |
14 ; CHECK: __0: | 11 ; CHECK: __0: |
15 ; CHECK-NEXT: store i8 3, i8* %__0, align 1 | 12 ; CHECK-NEXT: store i8 3, i8* %__0, align 1 |
16 ; CHECK-NEXT: ret void | 13 ; CHECK-NEXT: ret void |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 126 |
130 define void @store_v4xFloat(i32 %addr, <4 x float> %v) { | 127 define void @store_v4xFloat(i32 %addr, <4 x float> %v) { |
131 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>* | 128 %addr_v4xFloat = inttoptr i32 %addr to <4 x float>* |
132 store <4 x float> %v, <4 x float>* %addr_v4xFloat, align 4 | 129 store <4 x float> %v, <4 x float>* %addr_v4xFloat, align 4 |
133 ret void | 130 ret void |
134 | 131 |
135 ; CHECK: __0: | 132 ; CHECK: __0: |
136 ; CHECK-NEXT: store <4 x float> %__1, <4 x float>* %__0, align 4 | 133 ; CHECK-NEXT: store <4 x float> %__1, <4 x float>* %__0, align 4 |
137 ; CHECK-NEXT: ret void | 134 ; CHECK-NEXT: ret void |
138 } | 135 } |
OLD | NEW |