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

Side by Side Diff: tests_lit/reader_tests/unnamed.ll

Issue 1522433004: eliminate code related to --no-ir-gen (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes suggested by stichnot Created 5 years 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/switch.ll ('k') | tests_lit/reader_tests/unreachable.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 ; Tests that we name unnamed global addresses. 1 ; Tests that we name unnamed global addresses.
2 2
3 ; Check that Subzero's bitcode reader handles renaming correctly. 3 ; Check that Subzero's bitcode reader handles renaming correctly.
4 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s 4 ; RUN: %p2i --no-local-syms -i %s --insts | FileCheck %s
5 ; RUN: %l2i --no-local-syms -i %s --insts | %ifl FileCheck %s 5 ; RUN: %l2i --no-local-syms -i %s --insts | %ifl FileCheck %s
6 6
7 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \ 7 ; RUN: %l2i --no-local-syms -i %s --insts --args --exit-success \
8 ; RUN: -default-function-prefix=h -default-global-prefix=g \ 8 ; RUN: -default-function-prefix=h -default-global-prefix=g \
9 ; RUN: | %ifl FileCheck --check-prefix=BAD %s 9 ; RUN: | %ifl FileCheck --check-prefix=BAD %s
10 10
11 ; RUN: %p2i --no-local-syms -i %s --insts --args --exit-success \ 11 ; RUN: %p2i --no-local-syms -i %s --insts --args --exit-success \
12 ; RUN: -default-function-prefix=h -default-global-prefix=g \ 12 ; RUN: -default-function-prefix=h -default-global-prefix=g \
13 ; RUN: | FileCheck --check-prefix=BAD %s 13 ; RUN: | FileCheck --check-prefix=BAD %s
14 14
15 ; RUN: %if --need=allow_disable_ir_gen --command \ 15 ; RUN: %p2i -i %s --args -notranslate -timing | \
16 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \
17 ; RUN: | %if --need=allow_disable_ir_gen --command \
18 ; RUN: FileCheck --check-prefix=NOIR %s 16 ; RUN: FileCheck --check-prefix=NOIR %s
19 17
20 ; TODO(kschimpf) Check global variable declarations, once generated. 18 ; TODO(kschimpf) Check global variable declarations, once generated.
21 19
22 @0 = internal global [4 x i8] zeroinitializer, align 4 20 @0 = internal global [4 x i8] zeroinitializer, align 4
23 @1 = internal constant [10 x i8] c"Some stuff", align 1 21 @1 = internal constant [10 x i8] c"Some stuff", align 1
24 @g = internal global [4 x i8] zeroinitializer, align 4 22 @g = internal global [4 x i8] zeroinitializer, align 4
25 23
26 define internal i32 @2(i32 %v) { 24 define internal i32 @2(i32 %v) {
27 ret i32 %v 25 ret i32 %v
(...skipping 29 matching lines...) Expand all
57 55
58 ; CHECK-NEXT: define internal void @h5() { 56 ; CHECK-NEXT: define internal void @h5() {
59 ; CHECK-NEXT: __0: 57 ; CHECK-NEXT: __0:
60 ; CHECK-NEXT: ret void 58 ; CHECK-NEXT: ret void
61 ; CHECK-NEXT: } 59 ; CHECK-NEXT: }
62 60
63 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'. 61 ; BAD: Warning : Default global prefix 'g' potentially conflicts with name 'g'.
64 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5 '. 62 ; BAD: Warning : Default function prefix 'h' potentially conflicts with name 'h5 '.
65 63
66 ; NOIR: Total across all functions 64 ; NOIR: Total across all functions
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/switch.ll ('k') | tests_lit/reader_tests/unreachable.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698