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

Side by Side Diff: tests_lit/llvm2ice_tests/function_aligned.ll

Issue 1202563002: Subzero: Fix "make -f Makefile.standalone MINIMAL=1 check". (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 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/convert.ll ('k') | tests_lit/llvm2ice_tests/int-arg.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 --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s 6 ; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
7 7
8 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) 8 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented)
9 ; once enough infrastructure is in. Also, switch to --filetype=obj 9 ; once enough infrastructure is in. Also, switch to --filetype=obj
10 ; when possible. 10 ; when possible.
11 ; RUN: %if --need=target_ARM32 --command %p2i --filetype=asm --assemble \ 11 ; RUN: %if --need=target_ARM32 --need=allow_dump \
12 ; RUN: --command %p2i --filetype=asm --assemble \
12 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \ 13 ; RUN: --disassemble --target arm32 -i %s --args -O2 --skip-unimplemented \
13 ; RUN: | %if --need=target_ARM32 --command FileCheck --check-prefix ARM32 %s 14 ; RUN: | %if --need=target_ARM32 --need=allow_dump \
15 ; RUN: --command FileCheck --check-prefix ARM32 %s
14 16
15 define void @foo() { 17 define void @foo() {
16 ret void 18 ret void
17 } 19 }
18 ; CHECK-LABEL: foo 20 ; CHECK-LABEL: foo
19 ; CHECK-NEXT: 0: {{.*}} ret 21 ; CHECK-NEXT: 0: {{.*}} ret
20 ; CHECK-NEXT: 1: {{.*}} hlt 22 ; CHECK-NEXT: 1: {{.*}} hlt
21 ; ARM32-LABEL: foo 23 ; ARM32-LABEL: foo
22 ; ARM32-NEXT: 0: {{.*}} bx lr 24 ; ARM32-NEXT: 0: {{.*}} bx lr
23 ; ARM32-NEXT: 4: e7fedef0 udf 25 ; ARM32-NEXT: 4: e7fedef0 udf
24 ; ARM32-NEXT: 8: e7fedef0 udf 26 ; ARM32-NEXT: 8: e7fedef0 udf
25 ; ARM32-NEXT: c: e7fedef0 udf 27 ; ARM32-NEXT: c: e7fedef0 udf
26 28
27 define void @bar() { 29 define void @bar() {
28 ret void 30 ret void
29 } 31 }
30 ; CHECK-LABEL: bar 32 ; CHECK-LABEL: bar
31 ; CHECK-NEXT: 20: {{.*}} ret 33 ; CHECK-NEXT: 20: {{.*}} ret
32 ; ARM32-LABEL: bar 34 ; ARM32-LABEL: bar
33 ; ARM32-NEXT: 10: {{.*}} bx lr 35 ; ARM32-NEXT: 10: {{.*}} bx lr
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/convert.ll ('k') | tests_lit/llvm2ice_tests/int-arg.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698