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

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

Issue 700263003: Rearrange emit vs emitIAS. Wait till function is done before dumping text. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove comment... might end up using the iterator Created 6 years, 1 month 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
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-bitcast.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This file tests casting / conversion operations that apply to vector types. 1 ; This file tests casting / conversion operations that apply to vector types.
2 ; bitcast operations are in vector-bitcast.ll. 2 ; bitcast operations are in vector-bitcast.ll.
3 3
4 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer 4 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer
5 ; doesn't know how to symbolize non-section-local functions. 5 ; doesn't know how to symbolize non-section-local functions.
6 ; The newer LLVM 3.6 one does work, but watch out for other bugs. 6 ; The newer LLVM 3.6 one does work, but watch out for other bugs.
7 7
8 ; RUN: %p2i -i %s --args -O2 --verbose none \ 8 ; RUN: %p2i -i %s --args -O2 --verbose none \
9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s
10 ; RUN: %p2i -i %s --args -O2 --verbose none \ 10 ; RUN: %p2i -i %s --args -O2 --verbose none \
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { 140 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) {
141 entry: 141 entry:
142 %res = fptoui <4 x float> %arg to <4 x i32> 142 %res = fptoui <4 x float> %arg to <4 x i32>
143 ret <4 x i32> %res 143 ret <4 x i32> %res
144 144
145 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: 145 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32:
146 ; CHECK: call -4 146 ; CHECK: call -4
147 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 147 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32
148 ; CALLTARGETS: call Sz_fptoui_v4f32 148 ; CALLTARGETS: .long Sz_fptoui_v4f32
149 } 149 }
150 150
151 ; [su]itofp operations 151 ; [su]itofp operations
152 152
153 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) { 153 define <4 x float> @test_sitofp_v4i32_to_v4f32(<4 x i32> %arg) {
154 entry: 154 entry:
155 %res = sitofp <4 x i32> %arg to <4 x float> 155 %res = sitofp <4 x i32> %arg to <4 x float>
156 ret <4 x float> %res 156 ret <4 x float> %res
157 157
158 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32: 158 ; CHECK-LABEL: test_sitofp_v4i32_to_v4f32:
159 ; CHECK: cvtdq2ps 159 ; CHECK: cvtdq2ps
160 } 160 }
161 161
162 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) { 162 define <4 x float> @test_uitofp_v4i32_to_v4f32(<4 x i32> %arg) {
163 entry: 163 entry:
164 %res = uitofp <4 x i32> %arg to <4 x float> 164 %res = uitofp <4 x i32> %arg to <4 x float>
165 ret <4 x float> %res 165 ret <4 x float> %res
166 166
167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: 167 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32:
168 ; CHECK: call -4 168 ; CHECK: call -4
169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 169 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32
170 ; CALLTARGETS: call Sz_uitofp_v4i32 170 ; CALLTARGETS: .long Sz_uitofp_v4i32
171 } 171 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-bitcast.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698