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

Unified Diff: runtime/szrt_i686.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: stuff 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
Index: runtime/szrt_i686.ll
diff --git a/runtime/szrt_i686.ll b/runtime/szrt_i686.ll
new file mode 100644
index 0000000000000000000000000000000000000000..6001506b05e797a02b63a54b5cedbe15122f1148
--- /dev/null
+++ b/runtime/szrt_i686.ll
@@ -0,0 +1,13 @@
+target triple = "i686-pc-linux-gnu"
+
+define <4 x float> @Sz_uitofp_v4i32(<4 x i32> %a) {
+entry:
+ %0 = uitofp <4 x i32> %a to <4 x float>
+ ret <4 x float> %0
+}
+
+define <4 x i32> @Sz_fptoui_v4f32(<4 x float> %a) {
+entry:
+ %0 = fptoui <4 x float> %a to <4 x i32>
+ ret <4 x i32> %0
+}
« pydir/szbuild.py ('K') | « runtime/szrt.c ('k') | tests_lit/llvm2ice_tests/fp.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698