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

Side by Side Diff: tests_lit/llvm2ice_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 unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/global.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
(Empty)
1 ; Tests that we name unnamed global addresses.
2
3 ; RUN: %p2i -i %s --insts | FileCheck %s
4
5 ; RUN: %p2i -i %s --insts --args -default-function-prefix=h \
6 ; RUN: -default-global-prefix=g | FileCheck --check-prefix=BAD %s
7
8 @0 = internal global [4 x i8] zeroinitializer, align 4
9
10 ; CHECK: @Global = internal global [4 x i8] zeroinitializer, align 4
11
12 @1 = internal constant [10 x i8] c"Some stuff", align 1
13
14 ; CHECK-NEXT: @Global1 = internal constant [10 x i8] c"Some stuff", align 1
15
16 @g = internal global [4 x i8] zeroinitializer, align 4
17
18 ; BAD: Warning: Default global prefix 'g' conflicts with name 'g'.
19
20 ; CHECK-NEXT: @g = internal global [4 x i8] zeroinitializer, align 4
21
22 define i32 @2(i32 %v) {
23 ret i32 %v
24 }
25
26 ; CHECK-NEXT: define i32 @Function(i32 %v) {
27 ; CHECK-NEXT: __0:
28 ; CHECK-NEXT: ret i32 %v
29 ; CHECK-NEXT: }
30
31 define void @hg() {
32 ret void
33 }
34
35 ; BAD: Warning: Default function prefix 'h' conflicts with name 'hg'.
36
37 ; CHECK-NEXT: define void @hg() {
38 ; CHECK-NEXT: __0:
39 ; CHECK-NEXT: ret void
40 ; CHECK-NEXT: }
41
42 define void @3() {
43 ret void
44 }
45
46 ; CHECK-NEXT: define void @Function1() {
47 ; CHECK-NEXT: __0:
48 ; CHECK-NEXT: ret void
49 ; CHECK-NEXT: }
50
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/global.ll ('k') | tests_lit/reader_tests/globalrelocs.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698