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

Side by Side Diff: tests_lit/reader_tests/globalinit.pnacl.ll

Issue 1387963002: Make sure that all globals are internal, except for "start" functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix new tests. Created 5 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 unified diff | Download patch
« no previous file with comments | « tests_lit/reader_tests/forwardref.ll ('k') | tests_lit/reader_tests/globalrelocs.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Test of global initializers. 1 ; Test of global initializers.
2 2
3 ; RUN: %p2i -i %s --insts | FileCheck %s 3 ; RUN: %p2i -i %s --insts --args -allow-externally-defined-symbols \
4 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s 4 ; RUN: | FileCheck %s
5 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s 5 ; RUN: %l2i -i %s --insts --args -allow-externally-defined-symbols \
6 ; RUN: | %ifl FileCheck %s
7 ; RUN: %lc2i -i %s --insts --args -allow-externally-defined-symbols \
8 ; RUN: | %iflc FileCheck %s
6 ; RUN: %if --need=allow_disable_ir_gen --command \ 9 ; RUN: %if --need=allow_disable_ir_gen --command \
7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ 10 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \
11 ; RUN: -allow-externally-defined-symbols \
8 ; RUN: | %if --need=allow_disable_ir_gen --command \ 12 ; RUN: | %if --need=allow_disable_ir_gen --command \
9 ; RUN: FileCheck --check-prefix=NOIR %s 13 ; RUN: FileCheck --check-prefix=NOIR %s
10 14
11 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 15 @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4
12 ; CHECK: @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4 16 ; CHECK: @PrimitiveInit = internal global [4 x i8] c"\1B\00\00\00", align 4
13 17
14 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 18 @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4
15 ; CHECK-NEXT: @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4 19 ; CHECK-NEXT: @PrimitiveInitConst = internal constant [4 x i8] c"\0D\00\00\00", align 4
16 20
17 @ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\0 0\00\002\00\00\00", align 4 21 @ArrayInit = internal global [20 x i8] c"\0A\00\00\00\14\00\00\00\1E\00\00\00(\0 0\00\002\00\00\00", align 4
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ret i32 0 77 ret i32 0
74 } 78 }
75 79
76 define internal i32 @nacl_tp_tls_offset(i32 %size) { 80 define internal i32 @nacl_tp_tls_offset(i32 %size) {
77 entry: 81 entry:
78 %result = sub i32 0, %size 82 %result = sub i32 0, %size
79 ret i32 %result 83 ret i32 %result
80 } 84 }
81 85
82 ; NOIR: Total across all functions 86 ; NOIR: Total across all functions
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/forwardref.ll ('k') | tests_lit/reader_tests/globalrelocs.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698