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

Side by Side Diff: tests_lit/llvm2ice_tests/ias-multi-reloc.ll

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 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
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: %p2i -i %s --args -O2 | FileCheck %s 4 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 \
5 ; RUN: | %if --need=allow_dump --command FileCheck %s
5 6
6 ; char global_char; 7 ; char global_char;
7 ; char *p_global_char; 8 ; char *p_global_char;
8 ; void dummy(); 9 ; void dummy();
9 ; void store_immediate_to_global() { p_global_char = &global_char; } 10 ; void store_immediate_to_global() { p_global_char = &global_char; }
10 ; void add_in_place() { p_global_char += (int)&global_char; } 11 ; void add_in_place() { p_global_char += (int)&global_char; }
11 ; void cmp_global_immediate() { if (p_global_char == &global_char) dummy(); } 12 ; void cmp_global_immediate() { if (p_global_char == &global_char) dummy(); }
12 13
13 @global_char = internal global [1 x i8] zeroinitializer, align 1 14 @global_char = internal global [1 x i8] zeroinitializer, align 1
14 @p_global_char = internal global [4 x i8] zeroinitializer, align 4 15 @p_global_char = internal global [4 x i8] zeroinitializer, align 4
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 tail call void @dummy() 52 tail call void @dummy()
52 br label %if.end 53 br label %if.end
53 54
54 if.end: ; preds = %if.then, %entry 55 if.end: ; preds = %if.then, %entry
55 ret void 56 ret void
56 } 57 }
57 ; CHECK-LABEL: cmp_global_immediate 58 ; CHECK-LABEL: cmp_global_immediate
58 ; CHECK: .long p_global_char 59 ; CHECK: .long p_global_char
59 ; CHECK: .long global_char 60 ; CHECK: .long global_char
60 ; CHECK: .long dummy 61 ; CHECK: .long dummy
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/function_aligned.ll ('k') | tests_lit/llvm2ice_tests/nacl-atomic-cmpxchg-optimization.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698