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

Side by Side Diff: tests_lit/assembler/arm32/call.ll

Issue 1687553002: Change all ARM calls into indirect calls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 10 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 | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/assembler/arm32/push-pop.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; Show that we convert direct calls, into indirect calls (to handle far
2 ; branches).
3
4 ; NOTE: We use -O2 to get rid of memory stores.
5
6 ; REQUIRES: allow_dump
7
8 ; Compile using standalone assembler.
9 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -allow-extern \
10 ; RUN: -reg-use r5 | FileCheck %s --check-prefix=ASM
11
12 ; Show bytes in assembled standalone code.
13 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
14 ; RUN: --args -O2 -allow-extern -reg-use r5 | FileCheck %s --check-prefix=DIS
15
16 ; Compile using integrated assembler.
17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
18 ; RUN: -allow-extern -reg-use r5 | FileCheck %s --check-prefix=IASM
19
20 ; Show bytes in assembled integrated code.
21 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
22 ; RUN: --args -O2 -allow-extern -reg-use r5 | FileCheck %s --check-prefix=DIS
23
24 declare external void @doSomething()
25
26 define internal void @callSomething() {
27 ; ASM-LABEL:callSomething:
28 ; DIS-LABEL:{{.+}} <callSomething>:
29 ; IASM-LABEL:callSomething:
30
31 call void @doSomething();
32
33 ; ASM: movw r5, #:lower16:doSomething
34 ; DIS: {{.+}}: e3005000
35 ; ASM-NOT: movw
36
37 ; ASM-NEXT: movt r5, #:upper16:doSomething
38 ; DIS-NEXT: {{.+}}: e3405000
39 ; ASM-NOT: movt
40
41 ; ASM-NEXT: blx r5
42 ; DIS-NEXT: {{.+}}: e12fff35
43 ; ASM-NOT: blx
44 ret void
45 }
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/assembler/arm32/push-pop.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698