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

Side by Side Diff: tests_lit/assembler/arm32/push-pop.ll

Issue 1433743002: Add POP instruction to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in last patch. Created 5 years, 1 month 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
« src/IceInstARM32.cpp ('K') | « tests_lit/assembler/arm32/bic.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Show that we know how to translate push and pop. 1 ; Show that we know how to translate push and pop.
2 ; TODO(kschimpf) Translate pop instructions. 2 ; TODO(kschimpf) Translate pop instructions.
3 3
4 ; NOTE: We use -O2 to get rid of memory stores. 4 ; NOTE: We use -O2 to get rid of memory stores.
5 5
6 ; REQUIRES: allow_dump 6 ; REQUIRES: allow_dump
7 7
8 ; Compile using standalone assembler. 8 ; Compile using standalone assembler.
9 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -allow-extern \ 9 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -allow-extern \
10 ; RUN: | FileCheck %s --check-prefix=ASM 10 ; RUN: | FileCheck %s --check-prefix=ASM
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 ; IASM-NEXT: .byte 0xc 55 ; IASM-NEXT: .byte 0xc
56 ; IASM-NEXT: .byte 0xd0 56 ; IASM-NEXT: .byte 0xd0
57 ; IASM-NEXT: .byte 0x4d 57 ; IASM-NEXT: .byte 0x4d
58 ; IASM-NEXT: .byte 0xe2 58 ; IASM-NEXT: .byte 0xe2
59 ; IASM-NEXT: bl DoSomething 59 ; IASM-NEXT: bl DoSomething
60 ; IASM-NEXT: .byte 0xc 60 ; IASM-NEXT: .byte 0xc
61 ; IASM-NEXT: .byte 0xd0 61 ; IASM-NEXT: .byte 0xd0
62 ; IASM-NEXT: .byte 0x8d 62 ; IASM-NEXT: .byte 0x8d
63 ; IASM-NEXT: .byte 0xe2 63 ; IASM-NEXT: .byte 0xe2
64 ; IASM-NEXT: pop {lr} 64
65 ; IASM-NEXT: .byte 0x4
66 ; IASM-NEXT: .byte 0xe0
67 ; IASM-NEXT: .byte 0x9d
68 ; IASM-NEXT: .byte 0xe4
65 69
66 ; IASM: .byte 0x1e 70 ; IASM: .byte 0x1e
67 ; IASM-NEXT: .byte 0xff 71 ; IASM-NEXT: .byte 0xff
68 ; IASM-NEXT: .byte 0x2f 72 ; IASM-NEXT: .byte 0x2f
69 ; IASM-NEXT: .byte 0xe1 73 ; IASM-NEXT: .byte 0xe1
70 74
71 ; This test is based on taking advantage of the over-eager -O2 75 ; This test is based on taking advantage of the over-eager -O2
72 ; register allocator that puts V1 and V2 into callee-save registers, 76 ; register allocator that puts V1 and V2 into callee-save registers,
73 ; since the call instruction kills the scratch registers. This 77 ; since the call instruction kills the scratch registers. This
74 ; requires the callee-save registers to be pushed/popped in the 78 ; requires the callee-save registers to be pushed/popped in the
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 138
135 ; IASM-NEXT: .byte 0x4 139 ; IASM-NEXT: .byte 0x4
136 ; IASM-NEXT: .byte 0x0 140 ; IASM-NEXT: .byte 0x0
137 ; IASM-NEXT: .byte 0xa0 141 ; IASM-NEXT: .byte 0xa0
138 ; IASM-NEXT: .byte 0xe1 142 ; IASM-NEXT: .byte 0xe1
139 143
140 ; IASM-NEXT: .byte 0x4 144 ; IASM-NEXT: .byte 0x4
141 ; IASM-NEXT: .byte 0xd0 145 ; IASM-NEXT: .byte 0xd0
142 ; IASM-NEXT: .byte 0x8d 146 ; IASM-NEXT: .byte 0x8d
143 ; IASM-NEXT: .byte 0xe2 147 ; IASM-NEXT: .byte 0xe2
144 ; IASM-NEXT: pop {r4, r5, lr} 148
149 ; IASM-NEXT: .byte 0x30
150 ; IASM-NEXT: .byte 0x40
151 ; IASM-NEXT: .byte 0xbd
152 ; IASM-NEXT: .byte 0xe8
145 153
146 ; IASM: .byte 0x1e 154 ; IASM: .byte 0x1e
147 ; IASM-NEXT: .byte 0xff 155 ; IASM-NEXT: .byte 0xff
148 ; IASM-NEXT: .byte 0x2f 156 ; IASM-NEXT: .byte 0x2f
149 ; IASM-NEXT: .byte 0xe1 157 ; IASM-NEXT: .byte 0xe1
OLDNEW
« src/IceInstARM32.cpp ('K') | « tests_lit/assembler/arm32/bic.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698