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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crosstest/test_cast_main.cpp ('k') | crosstest/test_fcmp_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_cast_vectors.ll
diff --git a/crosstest/test_cast_vectors.ll b/crosstest/test_cast_vectors.ll
new file mode 100644
index 0000000000000000000000000000000000000000..1c9ffff45bcdf37bc573e75e8f8454ddf6c492ea
--- /dev/null
+++ b/crosstest/test_cast_vectors.ll
@@ -0,0 +1,25 @@
+target triple = "i686-pc-linux-gnu"
+
+define <4 x float> @_Z4castIDv4_iDv4_fET0_T_(<4 x i32> %a) {
+entry:
+ %0 = sitofp <4 x i32> %a to <4 x float>
+ ret <4 x float> %0
+}
+
+define <4 x i32> @_Z4castIDv4_fDv4_iET0_T_(<4 x float> %a) {
+entry:
+ %0 = fptosi <4 x float> %a to <4 x i32>
+ ret <4 x i32> %0
+}
+
+define <4 x float> @_Z4castIDv4_jDv4_fET0_T_(<4 x i32> %a) {
+entry:
+ %0 = uitofp <4 x i32> %a to <4 x float>
+ ret <4 x float> %0
+}
+
+define <4 x i32> @_Z4castIDv4_fDv4_jET0_T_(<4 x float> %a) {
+entry:
+ %0 = fptoui <4 x float> %a to <4 x i32>
+ ret <4 x i32> %0
+}
« 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