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

Unified Diff: test/Transforms/NaCl/convert-to-pso.ll

Issue 1694663002: PNaCl dynamic linking: Fix handling of local relocations with addends (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm@master
Patch Set: Created 4 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 | « lib/Transforms/NaCl/FlattenGlobals.cpp ('k') | test/Transforms/NaCl/flatten-globals.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/NaCl/convert-to-pso.ll
diff --git a/test/Transforms/NaCl/convert-to-pso.ll b/test/Transforms/NaCl/convert-to-pso.ll
index 853993a3a1193bb9b071b852093f708d0e14e116..b9f08fe89605a70f65117f153aaa07f4c012e40f 100644
--- a/test/Transforms/NaCl/convert-to-pso.ll
+++ b/test/Transforms/NaCl/convert-to-pso.ll
@@ -54,6 +54,8 @@ define i8* @my_read_tp() {
@local_var = internal global i32 0
@local_reloc_var = global i32* @local_var
; CHECK: @local_reloc_var = internal global i32 ptrtoint ([4 x i8]* @local_var to i32)
+@local_reloc_var_addend = global i32* getelementptr (i32, i32* @local_var, i32 1)
+; CHECK: @local_reloc_var_addend = internal global i32 add (i32 ptrtoint ([4 x i8]* @local_var to i32), i32 4)
; CHECK: @__pnacl_pso_root = constant
« no previous file with comments | « lib/Transforms/NaCl/FlattenGlobals.cpp ('k') | test/Transforms/NaCl/flatten-globals.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698