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

Unified Diff: tests_lit/reader_tests/unnamed.ll

Issue 624663002: Introduce model of global initializers in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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
« no previous file with comments | « tests_lit/reader_tests/globalrelocs.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/reader_tests/unnamed.ll
diff --git a/tests_lit/reader_tests/unnamed.ll b/tests_lit/reader_tests/unnamed.ll
index 8495ee5fe4f4449cbf9bb9384166b68be3ae5b35..c2dc6763f6328483cb2468e0c509c696d700bf37 100644
--- a/tests_lit/reader_tests/unnamed.ll
+++ b/tests_lit/reader_tests/unnamed.ll
@@ -1,8 +1,16 @@
; Tests that we name unnamed global addresses.
+; Check that the ICE converter handles renaming correctly.
+; RUN: %l2i --no-local-syms -i %s --insts | FileCheck %s
+
+; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \
+; RUN: -default-function-prefix=h -default-global-prefix=g \
+; RUN: | FileCheck --check-prefix=BAD %s
+
+; Check that Subzero's bitcode reader handles renaming correctly.
; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s
-; RUN: %p2i --no-local-syms -i %s --insts --args \
+; RUN: %p2i --no-local-syms -i %s --insts --args --exit-success \
; RUN: -default-function-prefix=h -default-global-prefix=g \
; RUN: | FileCheck --check-prefix=BAD %s
@@ -12,8 +20,6 @@
@1 = internal constant [10 x i8] c"Some stuff", align 1
@g = internal global [4 x i8] zeroinitializer, align 4
-; BAD: Warning: Default global prefix 'g' conflicts with name 'g'.
-
define i32 @2(i32 %v) {
ret i32 %v
}
@@ -27,7 +33,6 @@ define void @hg() {
ret void
}
-; BAD: Warning: Default function prefix 'h' conflicts with name 'hg'.
; CHECK-NEXT: define void @hg() {
; CHECK-NEXT: __0:
@@ -42,3 +47,15 @@ define void @3() {
; CHECK-NEXT: __0:
; CHECK-NEXT: ret void
; CHECK-NEXT: }
+
+define void @h5() {
+ ret void
+}
+
+; CHECK-NEXT: define void @h5() {
+; CHECK-NEXT: __0:
+; CHECK-NEXT: ret void
+; CHECK-NEXT: }
+
+; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'.
+; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5'.
« no previous file with comments | « tests_lit/reader_tests/globalrelocs.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698