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

Side by Side Diff: tests_lit/llvm2ice_tests/addr-opt-multi-def-var.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/8bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/address-mode-opt.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 ; This is distilled from a real function that led to a bug in the 1 ; This is distilled from a real function that led to a bug in the
2 ; address mode optimization code. It followed assignment chains 2 ; address mode optimization code. It followed assignment chains
3 ; through non-SSA temporaries created from Phi instruction lowering. 3 ; through non-SSA temporaries created from Phi instruction lowering.
4 ; 4 ;
5 ; This test depends to some degree on the stability of "--verbose 5 ; This test depends to some degree on the stability of "--verbose
6 ; addropt" output format. 6 ; addropt" output format.
7 7
8 ; REQUIRES: target_X8632 8 ; REQUIRES: target_X8632
9 ; REQUIRES: allow_dump 9 ; REQUIRES: allow_dump
10 ; RUN: %p2i -i %s --args -O2 --verbose addropt | FileCheck %s 10 ; RUN: %p2i -i %s --args -O2 --verbose addropt \
11 ; RUN: -allow-externally-defined-symbols | FileCheck %s
11 12
12 declare i32 @_calloc_r(i32, i32, i32) 13 declare i32 @_calloc_r(i32, i32, i32)
13 14
14 define internal i32 @_Balloc(i32 %ptr, i32 %k) { 15 define internal i32 @_Balloc(i32 %ptr, i32 %k) {
15 entry: 16 entry:
16 %gep = add i32 %ptr, 76 17 %gep = add i32 %ptr, 76
17 %gep.asptr = inttoptr i32 %gep to i32* 18 %gep.asptr = inttoptr i32 %gep to i32*
18 %0 = load i32, i32* %gep.asptr, align 1 19 %0 = load i32, i32* %gep.asptr, align 1
19 %cmp = icmp eq i32 %0, 0 20 %cmp = icmp eq i32 %0, 0
20 br i1 %cmp, label %if.then, label %if.end5 21 br i1 %cmp, label %if.then, label %if.end5
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ; Instruction: [ 12] %gep_array = mul i32 %k, 4 60 ; Instruction: [ 12] %gep_array = mul i32 %k, 4
60 ; results in Base=%__4, Index=%k, Shift=2, Offset=0 61 ; results in Base=%__4, Index=%k, Shift=2, Offset=0
61 ; 62 ;
62 ; CHECK-NOT: results in Base=%__4, 63 ; CHECK-NOT: results in Base=%__4,
63 ; 64 ;
64 ret i32 %2 65 ret i32 %2
65 66
66 return: ; preds = %if.then 67 return: ; preds = %if.then
67 ret i32 0 68 ret i32 0
68 } 69 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/8bit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/address-mode-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698