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

Side by Side Diff: tests_lit/llvm2ice_tests/bool-opt.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/bool-folding.ll ('k') | tests_lit/llvm2ice_tests/branch-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 ; Trivial smoke test of icmp without fused branch opportunity. 1 ; Trivial smoke test of icmp without fused branch opportunity.
2 2
3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args | FileCheck %s 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args \
4 ; RUN: -allow-externally-defined-symbols | FileCheck %s
4 5
5 ; Check that correct addressing modes are used for comparing two 6 ; Check that correct addressing modes are used for comparing two
6 ; immediates. 7 ; immediates.
7 define void @testIcmpImm() { 8 define internal void @testIcmpImm() {
8 entry: 9 entry:
9 %cmp = icmp eq i32 1, 2 10 %cmp = icmp eq i32 1, 2
10 %cmp_ext = zext i1 %cmp to i32 11 %cmp_ext = zext i1 %cmp to i32
11 tail call void @use(i32 %cmp_ext) 12 tail call void @use(i32 %cmp_ext)
12 ret void 13 ret void
13 } 14 }
14 ; CHECK-LABEL: testIcmpImm 15 ; CHECK-LABEL: testIcmpImm
15 ; CHECK-NOT: cmp {{[0-9]+}}, 16 ; CHECK-NOT: cmp {{[0-9]+}},
16 17
17 declare void @use(i32) 18 declare void @use(i32)
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/bool-folding.ll ('k') | tests_lit/llvm2ice_tests/branch-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698