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

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

Issue 550723002: Subzero: Use cvttss2si and similar instead of cvtss2si for fp->int casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use truncating conversion instruction for fp to int conversions Created 6 years, 3 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
« no previous file with comments | « tests_lit/llvm2ice_tests/fp.pnacl.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: %llvm2ice -O2 --verbose none %s \ 8 ; RUN: %llvm2ice -O2 --verbose none %s \
9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s 9 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s
10 ; RUN: %llvm2ice -O2 --verbose none %s \ 10 ; RUN: %llvm2ice -O2 --verbose none %s \
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 ; fpto[us]i operations 133 ; fpto[us]i operations
134 134
135 define <4 x i32> @test_fptosi_v4f32_to_v4i32(<4 x float> %arg) { 135 define <4 x i32> @test_fptosi_v4f32_to_v4i32(<4 x float> %arg) {
136 entry: 136 entry:
137 %res = fptosi <4 x float> %arg to <4 x i32> 137 %res = fptosi <4 x float> %arg to <4 x i32>
138 ret <4 x i32> %res 138 ret <4 x i32> %res
139 139
140 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32: 140 ; CHECK-LABEL: test_fptosi_v4f32_to_v4i32:
141 ; CHECK: cvtps2dq 141 ; CHECK: cvttps2dq
142 } 142 }
143 143
144 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) { 144 define <4 x i32> @test_fptoui_v4f32_to_v4i32(<4 x float> %arg) {
145 entry: 145 entry:
146 %res = fptoui <4 x float> %arg to <4 x i32> 146 %res = fptoui <4 x float> %arg to <4 x i32>
147 ret <4 x i32> %res 147 ret <4 x i32> %res
148 148
149 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32: 149 ; CHECK-LABEL: test_fptoui_v4f32_to_v4i32:
150 ; CHECK: call -4 150 ; CHECK: call -4
151 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32 151 ; CALLTARGETS-LABEL: test_fptoui_v4f32_to_v4i32
(...skipping 17 matching lines...) Expand all
169 ret <4 x float> %res 169 ret <4 x float> %res
170 170
171 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32: 171 ; CHECK-LABEL: test_uitofp_v4i32_to_v4f32:
172 ; CHECK: call -4 172 ; CHECK: call -4
173 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32 173 ; CALLTARGETS-LABEL: test_uitofp_v4i32_to_v4f32
174 ; CALLTARGETS: call Sz_uitofp_v4i32 174 ; CALLTARGETS: call Sz_uitofp_v4i32
175 } 175 }
176 176
177 ; ERRORS-NOT: ICE translation error 177 ; ERRORS-NOT: ICE translation error
178 ; DUMP-NOT: SZ 178 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fp.pnacl.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698