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

Side by Side Diff: crosstest/test_cast_vectors.ll

Issue 639543002: Add cross test for vector itofp and fptoi casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: share more Created 6 years, 2 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 | « crosstest/test_cast_main.cpp ('k') | crosstest/test_fcmp_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 target triple = "i686-pc-linux-gnu"
2
3 define <4 x float> @_Z4castIDv4_iDv4_fET0_T_(<4 x i32> %a) {
4 entry:
5 %0 = sitofp <4 x i32> %a to <4 x float>
6 ret <4 x float> %0
7 }
8
9 define <4 x i32> @_Z4castIDv4_fDv4_iET0_T_(<4 x float> %a) {
10 entry:
11 %0 = fptosi <4 x float> %a to <4 x i32>
12 ret <4 x i32> %0
13 }
14
15 define <4 x float> @_Z4castIDv4_jDv4_fET0_T_(<4 x i32> %a) {
16 entry:
17 %0 = uitofp <4 x i32> %a to <4 x float>
18 ret <4 x float> %0
19 }
20
21 define <4 x i32> @_Z4castIDv4_fDv4_jET0_T_(<4 x float> %a) {
22 entry:
23 %0 = fptoui <4 x float> %a to <4 x i32>
24 ret <4 x i32> %0
25 }
OLDNEW
« no previous file with comments | « crosstest/test_cast_main.cpp ('k') | crosstest/test_fcmp_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698