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

Side by Side Diff: tests_lit/llvm2ice_tests/reorder-functions.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
OLDNEW
1 ; This is a smoke test of function reordering. 1 ; This is a smoke test of function reordering.
2 2
3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
4 ; RUN: -sz-seed=1 -reorder-functions \ 4 ; RUN: -sz-seed=1 -reorder-functions \
5 ; RUN: | FileCheck %s --check-prefix=DEFAULTWINDOWSIZE 5 ; RUN: | FileCheck %s --check-prefix=DEFAULTWINDOWSIZE
6 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ 6 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
7 ; RUN: -sz-seed=1 -reorder-functions \ 7 ; RUN: -sz-seed=1 -reorder-functions \
8 ; RUN: | FileCheck %s --check-prefix=DEFAULTWINDOWSIZE 8 ; RUN: | FileCheck %s --check-prefix=DEFAULTWINDOWSIZE
9 9
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ 31 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
32 ; RUN: -sz-seed=1 -reorder-functions \ 32 ; RUN: -sz-seed=1 -reorder-functions \
33 ; RUN: -reorder-functions-window-size=0xffffffff \ 33 ; RUN: -reorder-functions-window-size=0xffffffff \
34 ; RUN: | FileCheck %s --check-prefix=WINDOWSIZEMAX 34 ; RUN: | FileCheck %s --check-prefix=WINDOWSIZEMAX
35 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ 35 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
36 ; RUN: -sz-seed=1 -reorder-functions \ 36 ; RUN: -sz-seed=1 -reorder-functions \
37 ; RUN: -reorder-functions-window-size=0xffffffff \ 37 ; RUN: -reorder-functions-window-size=0xffffffff \
38 ; RUN: | FileCheck %s --check-prefix=WINDOWSIZEMAX 38 ; RUN: | FileCheck %s --check-prefix=WINDOWSIZEMAX
39 39
40 define void @func1() { 40 define internal void @func1() {
41 ret void 41 ret void
42 } 42 }
43 43
44 define void @func2() { 44 define internal void @func2() {
45 ret void 45 ret void
46 } 46 }
47 47
48 define void @func3() { 48 define internal void @func3() {
49 ret void 49 ret void
50 } 50 }
51 51
52 define void @func4() { 52 define internal void @func4() {
53 ret void 53 ret void
54 } 54 }
55 55
56 define void @func5() { 56 define internal void @func5() {
57 ret void 57 ret void
58 } 58 }
59 59
60 define void @func6() { 60 define internal void @func6() {
61 ret void 61 ret void
62 } 62 }
63 63
64 ; DEFAULTWINDOWSIZE-LABEL: func1 64 ; DEFAULTWINDOWSIZE-LABEL: func1
65 ; DEFAULTWINDOWSIZE-LABEL: func4 65 ; DEFAULTWINDOWSIZE-LABEL: func4
66 ; DEFAULTWINDOWSIZE-LABEL: func5 66 ; DEFAULTWINDOWSIZE-LABEL: func5
67 ; DEFAULTWINDOWSIZE-LABEL: func2 67 ; DEFAULTWINDOWSIZE-LABEL: func2
68 ; DEFAULTWINDOWSIZE-LABEL: func6 68 ; DEFAULTWINDOWSIZE-LABEL: func6
69 ; DEFAULTWINDOWSIZE-LABEL: func3 69 ; DEFAULTWINDOWSIZE-LABEL: func3
70 70
(...skipping 10 matching lines...) Expand all
81 ; SEQUENTIAL-LABEL: func4 81 ; SEQUENTIAL-LABEL: func4
82 ; SEQUENTIAL-LABEL: func5 82 ; SEQUENTIAL-LABEL: func5
83 ; SEQUENTIAL-LABEL: func6 83 ; SEQUENTIAL-LABEL: func6
84 84
85 ; WINDOWSIZEMAX-LABEL: func1 85 ; WINDOWSIZEMAX-LABEL: func1
86 ; WINDOWSIZEMAX-LABEL: func4 86 ; WINDOWSIZEMAX-LABEL: func4
87 ; WINDOWSIZEMAX-LABEL: func5 87 ; WINDOWSIZEMAX-LABEL: func5
88 ; WINDOWSIZEMAX-LABEL: func2 88 ; WINDOWSIZEMAX-LABEL: func2
89 ; WINDOWSIZEMAX-LABEL: func6 89 ; WINDOWSIZEMAX-LABEL: func6
90 ; WINDOWSIZEMAX-LABEL: func3 90 ; WINDOWSIZEMAX-LABEL: func3
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/reorder-basic-blocks.ll ('k') | tests_lit/llvm2ice_tests/reorder-pooled-constants.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698