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

Unified Diff: test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll

Issue 14617017: Adding a pass - RewritePNaClLibraryCalls, that replaces known library calls with stable bitcode int… (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fixing for Jan's comments Created 7 years, 7 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: test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
diff --git a/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll b/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
new file mode 100644
index 0000000000000000000000000000000000000000..7a5315bb332db2a87a193462847763264177d36c
--- /dev/null
+++ b/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
@@ -0,0 +1,11 @@
+; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
+; Check that rewriting of the function pointer in globals work
+; correctly.
+
+declare void @longjmp(i64*, i32)
+
+; CHECK: @GlobFP = private global void (i64*, i32)* @__nacl_wrap_longjmp, align 8
+@GlobFP = global void (i64*, i32)* @longjmp, align 8
+
+; CHECK: define private void @__nacl_wrap_longjmp(i64* %env, i32 %val) {
jvoung (off chromium) 2013/05/13 19:52:07 reduce the amount of spacing between the CHECK: an
eliben 2013/05/13 22:07:18 Done.
+

Powered by Google App Engine
This is Rietveld 408576698