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

Side by Side Diff: tests_lit/llvm2ice_tests/reorder-pooled-constants.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 for reordering pooled constants. 1 ; This is a smoke test for reordering pooled constants.
2 ; This option is only implemented for target X8632 for now. 2 ; This option is only implemented for target X8632 for now.
3 3
4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ 4 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \
5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \ 5 ; RUN: --target x8632 -i %s --args -sz-seed=1 -O2 -reorder-pooled-constants \
6 ; RUN: | FileCheck %s --check-prefix=X86 6 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86
7 7
8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \ 8 ; RUN: %p2i --assemble --disassemble --filetype=obj --dis-flags=-s \
9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \ 9 ; RUN: --target x8632 -i %s --args -sz-seed=1 -Om1 -reorder-pooled-constants \
10 ; RUN: | FileCheck %s --check-prefix=X86 10 ; RUN: -allow-externally-defined-symbols | FileCheck %s --check-prefix=X86
11 11
12 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4 12 @__init_array_start = internal constant [0 x i8] zeroinitializer, align 4
13 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4 13 @__fini_array_start = internal constant [0 x i8] zeroinitializer, align 4
14 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8 14 @__tls_template_start = internal constant [0 x i8] zeroinitializer, align 8
15 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4 15 @__tls_template_alignment = internal constant [4 x i8] c"\01\00\00\00", align 4
16 16
17 define internal float @FpLookup1(i32 %Arg) { 17 define internal float @FpLookup1(i32 %Arg) {
18 entry: 18 entry:
19 switch i32 %Arg, label %return [ 19 switch i32 %Arg, label %return [
20 i32 0, label %sw.bb 20 i32 0, label %sw.bb
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 ; X86: 0000c07f 00000000 0000003f 0000803e 540 ; X86: 0000c07f 00000000 0000003f 0000803e
541 ; X86: 00000040 541 ; X86: 00000040
542 542
543 ; Check for double pool 543 ; Check for double pool
544 ; X86-LABEL: .rodata.cst8 544 ; X86-LABEL: .rodata.cst8
545 ; X86: 00000000 0000f8ff 00000000 0000f87f 545 ; X86: 00000000 0000f8ff 00000000 0000f87f
546 ; X86: 00000000 0000e03f 00000000 00000000 546 ; X86: 00000000 0000e03f 00000000 00000000
547 ; X86: 55555555 5555d53f 00000000 0000d03f 547 ; X86: 55555555 5555d53f 00000000 0000d03f
548 548
549 ; X86-LABEL: .text 549 ; X86-LABEL: .text
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/reorder-functions.ll ('k') | tests_lit/llvm2ice_tests/return_immediates.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698