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

Side by Side Diff: tests_lit/llvm2ice_tests/ias-multi-reloc.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/llvm2ice_tests/globalrelocs.ll ('k') | tests_lit/llvm2ice_tests/int-arg.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 ; Tests the integrated assembler for instructions with multiple 1 ; Tests the integrated assembler for instructions with multiple
2 ; relocations. 2 ; relocations.
3 3
4 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \ 4 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \
5 ; RUN: -allow-externally-defined-symbols \
5 ; RUN: | %if --need=allow_dump --command FileCheck %s 6 ; RUN: | %if --need=allow_dump --command FileCheck %s
6 7
7 ; char global_char; 8 ; char global_char;
8 ; char *p_global_char; 9 ; char *p_global_char;
9 ; void dummy(); 10 ; void dummy();
10 ; void store_immediate_to_global() { p_global_char = &global_char; } 11 ; void store_immediate_to_global() { p_global_char = &global_char; }
11 ; void add_in_place() { p_global_char += (int)&global_char; } 12 ; void add_in_place() { p_global_char += (int)&global_char; }
12 ; void cmp_global_immediate() { if (p_global_char == &global_char) dummy(); } 13 ; void cmp_global_immediate() { if (p_global_char == &global_char) dummy(); }
13 14
14 @global_char = internal global [1 x i8] zeroinitializer, align 1 15 @global_char = internal global [1 x i8] zeroinitializer, align 1
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 tail call void @dummy() 54 tail call void @dummy()
54 br label %if.end 55 br label %if.end
55 56
56 if.end: ; preds = %if.then, %entry 57 if.end: ; preds = %if.then, %entry
57 ret void 58 ret void
58 } 59 }
59 ; CHECK-LABEL: cmp_global_immediate 60 ; CHECK-LABEL: cmp_global_immediate
60 ; CHECK: .long p_global_char 61 ; CHECK: .long p_global_char
61 ; CHECK: .long global_char 62 ; CHECK: .long global_char
62 ; CHECK: .long dummy 63 ; CHECK: .long dummy
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/globalrelocs.ll ('k') | tests_lit/llvm2ice_tests/int-arg.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698