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

Unified Diff: test/Transforms/NaCl/flatten-globals.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 | « test/Transforms/NaCl/convert-to-pso.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/NaCl/flatten-globals.ll
diff --git a/test/Transforms/NaCl/flatten-globals.ll b/test/Transforms/NaCl/flatten-globals.ll
index fa62104ae29909571f771f7d0011e91ba4a8f5a0..e7e8944cd738422f8e48217f58d390851d46f308 100644
--- a/test/Transforms/NaCl/flatten-globals.ll
+++ b/test/Transforms/NaCl/flatten-globals.ll
@@ -1,6 +1,9 @@
; RUN: opt -flatten-globals %s -S | FileCheck %s
; RUN: opt -flatten-globals %s -S | FileCheck %s -check-prefix=CLEANED
+; Check that the pass can handle its own output (idempotence).
+; RUN: opt -flatten-globals -flatten-globals %s -S
+
target datalayout = "p:32:32:32"
@@ -187,6 +190,9 @@ target datalayout = "p:32:32:32"
i8* blockaddress(@func_with_block, %label), i32 100)
; CHECK: @block_addend = global i32 add (i32 ptrtoint (i8* blockaddress(@func_with_block, %label) to i32), i32 100)
+@add_expr = global i32 add (i32 ptrtoint (%ptrs1* @ptrs1 to i32), i32 8)
+; CHECK: @add_expr = global i32 add (i32 ptrtoint (<{ i32, [8 x i8] }>* @ptrs1 to i32), i32 8)
+
; Special cases
« no previous file with comments | « test/Transforms/NaCl/convert-to-pso.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698