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

Side by Side Diff: tests_lit/reader_tests/extern_globals.ll

Issue 659513005: Allow conditional lit tests in Subzero, based on build flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add -Wno-error=unused-parameter Created 6 years, 1 month 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/binops.ll ('k') | tests_lit/reader_tests/globalinit.pnacl.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 whether we don't mangle external, undefined, global names. This 1 ; Test whether we don't mangle external, undefined, global names. This
2 ; feature is needed for cross tests on global initializer relocations. 2 ; feature is needed for cross tests on global initializer relocations.
3 ; 3 ;
4 ; Note: This code was generated by compiling subzero/crosstest/test_global.cpp 4 ; Note: This code was generated by compiling subzero/crosstest/test_global.cpp
5 5
6 ; We use lc2i (rather than p2i) because PNaCl bitcode files do not 6 ; We use lc2i (rather than p2i) because PNaCl bitcode files do not
7 ; allow externally defined global variables. Hence, this test can only 7 ; allow externally defined global variables. Hence, this test can only
8 ; work if we read LLVM IR source, and convert to to ICE. 8 ; work if we read LLVM IR source, and convert to to ICE.
9 9
10 ; REQUIRES: allow_llvm_ir_as_input
10 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals | FileCheck %s 11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals | FileCheck %s
11 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \ 12 ; RUN: %lc2i -i %s --insts --args --allow-uninitialized-globals \
12 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s 13 ; RUN: -prefix Subzero_ | FileCheck --check-prefix=CROSS %s
13 14
14 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64 :64:64-p:32:32:32-v128:32:32" 15 target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64 :64:64-p:32:32:32-v128:32:32"
15 target triple = "i686-pc-linux-gnu" 16 target triple = "i686-pc-linux-gnu"
16 17
17 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\ 00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 4 18 @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\00\00\00Z\ 00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 4
18 19
19 ; CHECK: @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\0 0\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0 0\00\00", align 4 20 ; CHECK: @ArrayInitPartial = internal global [40 x i8] c"<\00\00\00F\00\00\00P\0 0\00\00Z\00\00\00d\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0 0\00\00", align 4
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 define i32 @nacl_tp_tdb_offset(i32) { 262 define i32 @nacl_tp_tdb_offset(i32) {
262 entry: 263 entry:
263 ret i32 0 264 ret i32 0
264 } 265 }
265 266
266 define i32 @nacl_tp_tls_offset(i32 %size) { 267 define i32 @nacl_tp_tls_offset(i32 %size) {
267 entry: 268 entry:
268 %result = sub i32 0, %size 269 %result = sub i32 0, %size
269 ret i32 %result 270 ret i32 %result
270 } 271 }
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/binops.ll ('k') | tests_lit/reader_tests/globalinit.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698