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

Side by Side Diff: tests_lit/llvm2ice_tests/branch-opt.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
« no previous file with comments | « tests_lit/llvm2ice_tests/bool-opt.ll ('k') | tests_lit/llvm2ice_tests/callindirect.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 ; Tests the branch optimizations under O2 (against a lack of 1 ; Tests the branch optimizations under O2 (against a lack of
2 ; optimizations under Om1). 2 ; optimizations under Om1).
3 3
4 ; RUN: %p2i --assemble --disassemble -i %s --args -O2 --verbose none \ 4 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \
5 ; RUN: | FileCheck --check-prefix=O2 %s 5 ; RUN: | FileCheck --check-prefix=O2 %s
6 ; RUN: %p2i --assemble --disassemble -i %s --args -Om1 --verbose none \ 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \
7 ; RUN: | FileCheck --check-prefix=OM1 %s 7 ; RUN: | FileCheck --check-prefix=OM1 %s
8 8
9 declare void @dummy() 9 declare void @dummy()
10 10
11 ; An unconditional branch to the next block should be removed. 11 ; An unconditional branch to the next block should be removed.
12 define void @testUncondToNextBlock() { 12 define void @testUncondToNextBlock() {
13 entry: 13 entry:
14 call void @dummy() 14 call void @dummy()
15 br label %next 15 br label %next
16 next: 16 next:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ; OM1-LABEL: testCondTargetNextBlock 89 ; OM1-LABEL: testCondTargetNextBlock
90 ; OM1: cmp {{.*}},0x7b 90 ; OM1: cmp {{.*}},0x7b
91 ; OM1: jge 91 ; OM1: jge
92 ; OM1: cmp 92 ; OM1: cmp
93 ; OM1: jne 93 ; OM1: jne
94 ; OM1: jmp 94 ; OM1: jmp
95 ; OM1: call 95 ; OM1: call
96 ; OM1: ret 96 ; OM1: ret
97 ; OM1: call 97 ; OM1: call
98 ; OM1: ret 98 ; OM1: ret
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/bool-opt.ll ('k') | tests_lit/llvm2ice_tests/callindirect.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698