Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: tests_lit/llvm2ice_tests/vector-bitcast.ll

Issue 1531623007: Add option to force filetype=asm for testing (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review fixes. Tighter ABI checks. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 ; This file tests bitcasts of vector type. For most operations, these 1 ; This file tests bitcasts of vector type. For most operations, these
2 ; should be lowered to a no-op on -O2. 2 ; should be lowered to a no-op on -O2.
3 3
4 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ 4 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
5 ; RUN: | FileCheck %s 5 ; RUN: | FileCheck %s
6 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ 6 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
7 ; RUN: | FileCheck --check-prefix=OPTM1 %s 7 ; RUN: | FileCheck --check-prefix=OPTM1 %s
8 8
9 define internal <16 x i8> @test_bitcast_v16i8_to_v16i8(<16 x i8> %arg) { 9 define internal <16 x i8> @test_bitcast_v16i8_to_v16i8(<16 x i8> %arg) {
10 entry: 10 entry:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 define internal <4 x float> @test_bitcast_v4f32_to_v4f32(<4 x float> %arg) { 144 define internal <4 x float> @test_bitcast_v4f32_to_v4f32(<4 x float> %arg) {
145 entry: 145 entry:
146 %res = bitcast <4 x float> %arg to <4 x float> 146 %res = bitcast <4 x float> %arg to <4 x float>
147 ret <4 x float> %res 147 ret <4 x float> %res
148 148
149 ; CHECK-LABEL: test_bitcast_v4f32_to_v4f32 149 ; CHECK-LABEL: test_bitcast_v4f32_to_v4f32
150 ; CHECK-NEXT: ret 150 ; CHECK-NEXT: ret
151 } 151 }
152 152
153 define internal i8 @test_bitcast_v8i1_to_i8(<8 x i1> %arg) { 153 define internal i32 @test_bitcast_v8i1_to_i8(<8 x i1> %arg) {
154 entry: 154 entry:
155 %res = bitcast <8 x i1> %arg to i8 155 %res = bitcast <8 x i1> %arg to i8
156 ret i8 %res 156 %res.i32 = zext i8 %res to i32
157 ret i32 %res.i32
157 158
158 ; CHECK-LABEL: test_bitcast_v8i1_to_i8 159 ; CHECK-LABEL: test_bitcast_v8i1_to_i8
159 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_8xi1_i8 160 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_8xi1_i8
160 161
161 ; OPTM1-LABEL: test_bitcast_v8i1_to_i8 162 ; OPTM1-LABEL: test_bitcast_v8i1_to_i8
162 ; OPMT1: call -4 163 ; OPMT1: call -4
163 } 164 }
164 165
165 define internal i16 @test_bitcast_v16i1_to_i16(<16 x i1> %arg) { 166 define internal i32 @test_bitcast_v16i1_to_i16(<16 x i1> %arg) {
166 entry: 167 entry:
167 %res = bitcast <16 x i1> %arg to i16 168 %res = bitcast <16 x i1> %arg to i16
168 ret i16 %res 169 %res.i32 = zext i16 %res to i32
170 ret i32 %res.i32
169 171
170 ; CHECK-LABEL: test_bitcast_v16i1_to_i16 172 ; CHECK-LABEL: test_bitcast_v16i1_to_i16
171 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_16xi1_i16 173 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_16xi1_i16
172 174
173 ; OPTM1-LABEL: test_bitcast_v16i1_to_i16 175 ; OPTM1-LABEL: test_bitcast_v16i1_to_i16
174 ; OPMT1: call -4 176 ; OPMT1: call -4
175 } 177 }
176 178
177 define internal <8 x i1> @test_bitcast_i8_to_v8i1(i32 %arg) { 179 define internal <8 x i1> @test_bitcast_i8_to_v8i1(i32 %arg) {
178 entry: 180 entry:
(...skipping 13 matching lines...) Expand all
192 %arg.trunc = trunc i32 %arg to i16 194 %arg.trunc = trunc i32 %arg to i16
193 %res = bitcast i16 %arg.trunc to <16 x i1> 195 %res = bitcast i16 %arg.trunc to <16 x i1>
194 ret <16 x i1> %res 196 ret <16 x i1> %res
195 197
196 ; CHECK-LABEL: test_bitcast_i16_to_v16i1 198 ; CHECK-LABEL: test_bitcast_i16_to_v16i1
197 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_i16_16xi1 199 ; CHECK: call {{.*}} R_{{.*}} __Sz_bitcast_i16_16xi1
198 200
199 ; OPTM1-LABEL: test_bitcast_i16_to_v16i1 201 ; OPTM1-LABEL: test_bitcast_i16_to_v16i1
200 ; OPTM1: call {{.*}} R_{{.*}} __Sz_bitcast_i16_16xi1 202 ; OPTM1: call {{.*}} R_{{.*}} __Sz_bitcast_i16_16xi1
201 } 203 }
OLDNEW
« tests_lit/llvm2ice_tests/square.ll ('K') | « tests_lit/llvm2ice_tests/test_i1.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698