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

Side by Side Diff: tests_lit/llvm2ice_tests/globalrelocs.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 ; Tests if we handle global variables with relocation initializers. 1 ; Tests if we handle global variables with relocation initializers.
2 2
3 ; REQUIRES: allow_dump 3 ; REQUIRES: allow_dump
4 4
5 ; Test that we handle it in the ICE converter. 5 ; Test that we handle it in the ICE converter.
6 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \ 6 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \
7 ; RUN: | %iflc FileCheck %s 7 ; RUN: | %iflc FileCheck %s
8 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \ 8 ; RUN: %lc2i -i %s --args -verbose inst -threads=0 \
9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s 9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ; CHECK: .size char, 1 251 ; CHECK: .size char, 1
252 252
253 @short = internal constant [2 x i8] zeroinitializer 253 @short = internal constant [2 x i8] zeroinitializer
254 ; DUMP: @short = internal constant [2 x i8] zeroinitializer 254 ; DUMP: @short = internal constant [2 x i8] zeroinitializer
255 ; CHECK: .type short,%object 255 ; CHECK: .type short,%object
256 ; CHECK: .section .rodata,"a",%progbits 256 ; CHECK: .section .rodata,"a",%progbits
257 ; CHECK:short: 257 ; CHECK:short:
258 ; CHECK: .zero 2 258 ; CHECK: .zero 2
259 ; CHECK: .size short, 2 259 ; CHECK: .size short, 2
260 260
261 define void @func() { 261 define internal void @func() {
262 ret void 262 ret void
263 } 263 }
264 264
265 ; DUMP: define void @func() { 265 ; DUMP: define internal void @func() {
266 266
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/globalinit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/ias-multi-reloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698