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

Unified Diff: runtime/szrt_ll.ll

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 5 years, 10 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 | « runtime/szrt_i686.ll ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/szrt_ll.ll
diff --git a/runtime/szrt_ll.ll b/runtime/szrt_ll.ll
new file mode 100644
index 0000000000000000000000000000000000000000..3a1712158fc362a57f0fb4fbc44a93e5767530f7
--- /dev/null
+++ b/runtime/szrt_ll.ll
@@ -0,0 +1,27 @@
+;;===- subzero/runtime/szrt_ll.ll - Subzero runtime source ----------------===;;
+;;
+;; The Subzero Code Generator
+;;
+;; This file is distributed under the University of Illinois Open Source
+;; License. See LICENSE.TXT for details.
+;;
+;;===----------------------------------------------------------------------===;;
+;;
+;; This file implements wrappers for particular bitcode instructions that are
+;; too uncommon and complex for a particular target to bother implementing
+;; directly in Subzero target lowering. This needs to be compiled by some
+;; non-Subzero compiler.
+;;
+;;===----------------------------------------------------------------------===;;
+
+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
+}
« no previous file with comments | « runtime/szrt_i686.ll ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698