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

Side by Side Diff: tests_lit/llvm2ice_tests/globalrelocs.ll

Issue 1744913002: Subzero: Add "-verbose init" to control global initializer dumping. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 9 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
« src/IceClFlags.cpp ('K') | « src/IceGlobalContext.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,init -threads=0 \
9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s 9 ; RUN: | %iflc FileCheck --check-prefix=DUMP %s
10 10
11 ; Test that we handle it using Subzero's bitcode reader. 11 ; Test that we handle it using Subzero's bitcode reader.
12 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \ 12 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \
13 ; RUN: | FileCheck %s 13 ; RUN: | FileCheck %s
14 ; RUN: %p2i -i %s --args -verbose inst -threads=0 \ 14 ; RUN: %p2i -i %s --args -verbose inst,init -threads=0 \
15 ; RUN: | FileCheck --check-prefix=DUMP %s 15 ; RUN: | FileCheck --check-prefix=DUMP %s
16 16
17 @bytes = internal global [7 x i8] c"abcdefg" 17 @bytes = internal global [7 x i8] c"abcdefg"
18 ; DUMP: @bytes = internal global [7 x i8] c"abcdefg" 18 ; DUMP: @bytes = internal global [7 x i8] c"abcdefg"
19 ; CHECK: .type bytes,%object 19 ; CHECK: .type bytes,%object
20 ; CHECK: .section .data,"aw",%progbits 20 ; CHECK: .section .data,"aw",%progbits
21 ; CHECK:bytes: 21 ; CHECK:bytes:
22 ; CHECK: .byte 97 22 ; CHECK: .byte 97
23 ; CHECK: .byte 98 23 ; CHECK: .byte 98
24 ; CHECK: .byte 99 24 ; CHECK: .byte 99
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 internal void @func() { 261 define internal void @func() {
262 ret void 262 ret void
263 } 263 }
264 264
265 ; DUMP: define internal void @func() { 265 ; DUMP: define internal void @func() {
OLDNEW
« src/IceClFlags.cpp ('K') | « src/IceGlobalContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698