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

Side by Side Diff: tests_lit/llvm2ice_tests/function_aligned.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/fpcall.ll ('k') | tests_lit/llvm2ice_tests/ias-multi-reloc.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 ; Test that functions are aligned to the NaCl bundle alignment. 1 ; Test that functions are aligned to the NaCl bundle alignment.
2 ; We could be smarter and only do this for indirect call targets 2 ; We could be smarter and only do this for indirect call targets
3 ; but typically you want to align functions anyway. 3 ; but typically you want to align functions anyway.
4 ; Also, we are currently using hlts for non-executable padding. 4 ; Also, we are currently using hlts for non-executable padding.
5 5
6 ; RUN: %p2i --assemble --disassemble -i %s --args -O2 --verbose none \ 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
7 ; RUN: | FileCheck %s
8 7
9 define void @foo() { 8 define void @foo() {
10 ret void 9 ret void
11 } 10 }
12 ; CHECK-LABEL: foo 11 ; CHECK-LABEL: foo
13 ; CHECK-NEXT: 0: {{.*}} ret 12 ; CHECK-NEXT: 0: {{.*}} ret
14 ; CHECK-NEXT: 1: {{.*}} hlt 13 ; CHECK-NEXT: 1: {{.*}} hlt
15 14
16 define void @bar() { 15 define void @bar() {
17 ret void 16 ret void
18 } 17 }
19 ; CHECK-LABEL: bar 18 ; CHECK-LABEL: bar
20 ; CHECK-NEXT: 20: {{.*}} ret 19 ; CHECK-NEXT: 20: {{.*}} ret
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fpcall.ll ('k') | tests_lit/llvm2ice_tests/ias-multi-reloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698