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

Side by Side Diff: tests_lit/assembler/arm32/load-store.ll

Issue 1402403002: Handle stack spills in ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 2 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/IceInstARM32.cpp ('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
(Empty)
1 ; Show that we can handle variable (i.e. stack) spills.
2
3 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
4 ; RUN: | FileCheck %s --check-prefix=ASM
5 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
6 ; RUN: | FileCheck %s --check-prefix=IASM
7
8 define internal i32 @add1ToR0(i32 %p) {
9 %v = add i32 %p, 1
10 ret i32 %v
11 }
12
13 ; ASM-LABEL: add1ToR0:
14 ; IASM-LABEL: add1ToR0:
15
16 ; ASM: sub sp, sp, #8
17 ; IASM: .byte 0x8
18 ; IASM-NEXT: .byte 0xd0
19 ; IASM-NEXT: .byte 0x4d
20 ; IASM-NEXT: .byte 0xe2
21
22 ; ASM-NEXT: str r0, [sp, #4]
23 ; IASM-NEXT: .byte 0x4
24 ; IASM-NEXT: .byte 0x0
25 ; IASM-NEXT: .byte 0x8d
26 ; IASM-NEXT: .byte 0xe5
27
28 ; ASM-NEXT: ldr r0, [sp, #4]
29 ; IASM-NEXT: .byte 0x4
30 ; IASM-NEXT: .byte 0x0
31 ; IASM-NEXT: .byte 0x9d
32 ; IASM-NEXT: .byte 0xe5
33
34 ; ASM-NEXT: add r0, r0, #1
35 ; IASM-NEXT: .byte 0x1
36 ; IASM-NEXT: .byte 0x0
37 ; IASM-NEXT: .byte 0x80
38 ; IASM-NEXT: .byte 0xe2
39
40 ; ASM-NEXT: str r0, [sp]
41 ; IASM-NEXT: .byte 0x0
42 ; IASM-NEXT: .byte 0x0
43 ; IASM-NEXT: .byte 0x8d
44 ; IASM-NEXT: .byte 0xe5
45
46 ; ASM-NEXT: ldr r0, [sp]
47 ; IASM-NEXT: .byte 0x0
48 ; IASM-NEXT: .byte 0x0
49 ; IASM-NEXT: .byte 0x9d
50 ; IASM-NEXT: .byte 0xe5
51
52 ; ASM-NEXT: add sp, sp, #8
53 ; IASM-NEXT: .byte 0x8
54 ; IASM-NEXT: .byte 0xd0
55 ; IASM-NEXT: .byte 0x8d
56 ; IASM-NEXT: .byte 0xe2
57
58 ; ASM-NEXT: bx lr
59 ; IASM-NEXT: .byte 0x1e
60 ; IASM-NEXT: .byte 0xff
61 ; IASM-NEXT: .byte 0x2f
62 ; IASM-NEXT: .byte 0xe1
63
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698