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

Side by Side Diff: tests_lit/reader_tests/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
« no previous file with comments | « tests_lit/reader_tests/compare.ll ('k') | tests_lit/reader_tests/extern_globals.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 handling of constants in function blocks. 1 ; Test handling of constants in function blocks.
2 2
3 ; RUN: %p2i -i %s --insts | FileCheck %s 3 ; RUN: %p2i -i %s --insts | FileCheck %s
4 ; RUN: %if --need=allow_disable_ir_gen --command \ 4 ; RUN: %if --need=allow_disable_ir_gen --command \
5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ 5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \
6 ; RUN: | %if --need=allow_disable_ir_gen --command \ 6 ; RUN: | %if --need=allow_disable_ir_gen --command \
7 ; RUN: FileCheck --check-prefix=NOIR %s 7 ; RUN: FileCheck --check-prefix=NOIR %s
8 8
9 define void @TestIntegers() { 9 define internal void @TestIntegers() {
10 entry: 10 entry:
11 ; CHECK: entry: 11 ; CHECK: entry:
12 12
13 ; Test various sized integers 13 ; Test various sized integers
14 %v0 = or i1 true, false 14 %v0 = or i1 true, false
15 ; CHECK-NEXT: %v0 = or i1 true, false 15 ; CHECK-NEXT: %v0 = or i1 true, false
16 16
17 %v1 = add i8 0, 0 17 %v1 = add i8 0, 0
18 ; CHECK-NEXT: %v1 = add i8 0, 0 18 ; CHECK-NEXT: %v1 = add i8 0, 0
19 19
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ; CHECK-NEXT: %v13 = add i32 undef, 0 55 ; CHECK-NEXT: %v13 = add i32 undef, 0
56 56
57 %v14 = add i64 undef, 0 57 %v14 = add i64 undef, 0
58 ; CHECK-NEXT: %v14 = add i64 undef, 0 58 ; CHECK-NEXT: %v14 = add i64 undef, 0
59 59
60 ret void 60 ret void
61 ; CHECK-NEXT: ret void 61 ; CHECK-NEXT: ret void
62 62
63 } 63 }
64 64
65 define void @TestFloats() { 65 define internal void @TestFloats() {
66 entry: 66 entry:
67 ; CHECK: entry: 67 ; CHECK: entry:
68 68
69 ; Test float and double constants 69 ; Test float and double constants
70 %v0 = fadd float 1.0, 0.0 70 %v0 = fadd float 1.0, 0.0
71 ; CHECK-NEXT: %v0 = fadd float 1.000000e+00, 0.000000e+00 71 ; CHECK-NEXT: %v0 = fadd float 1.000000e+00, 0.000000e+00
72 72
73 %v1 = fadd double 1.0, 0.0 73 %v1 = fadd double 1.0, 0.0
74 ; CHECK-NEXT: %v1 = fadd double 1.000000e+00, 0.000000e+00 74 ; CHECK-NEXT: %v1 = fadd double 1.000000e+00, 0.000000e+00
75 75
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 ; Generated from -DBL_MAX in <float.h> 152 ; Generated from -DBL_MAX in <float.h>
153 %v21 = fadd double -1797693134862315708145274237317043567980705675258449965989 17476803157260780028538760589558632766878171540458953514382464234321326889464182 76846754670353751698604991057655128207624549009038932894407586850845513394230458 32369032229481658085593321233482747978262041447231687381771809192998812504040261 84124858368.000000, 0.0 153 %v21 = fadd double -1797693134862315708145274237317043567980705675258449965989 17476803157260780028538760589558632766878171540458953514382464234321326889464182 76846754670353751698604991057655128207624549009038932894407586850845513394230458 32369032229481658085593321233482747978262041447231687381771809192998812504040261 84124858368.000000, 0.0
154 ; CHECK-NEXT: %v21 = fadd double -1.797693e+308, 0.000000e+00 154 ; CHECK-NEXT: %v21 = fadd double -1.797693e+308, 0.000000e+00
155 155
156 ret void 156 ret void
157 ; CHECK-NEXT: ret void 157 ; CHECK-NEXT: ret void
158 } 158 }
159 159
160 ; NOIR: Total across all functions 160 ; NOIR: Total across all functions
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/compare.ll ('k') | tests_lit/reader_tests/extern_globals.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698