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

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

Issue 1465213002: Subzero. ARM32. Combine allocas. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years 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/llvm2ice_tests/alloc.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 ; Show that we know how to translate bic. 1 ; Show that we know how to translate bic.
2 2
3 ; NOTE: We use -O2 to get rid of memory stores. 3 ; NOTE: We use -O2 to get rid of memory stores.
4 4
5 ; REQUIRES: allow_dump 5 ; REQUIRES: allow_dump
6 6
7 ; Compile using standalone assembler. 7 ; Compile using standalone assembler.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=ASM 9 ; RUN: | FileCheck %s --check-prefix=ASM
10 10
(...skipping 10 matching lines...) Expand all
21 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS 21 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
22 22
23 define internal i32 @AllocBigAlign() { 23 define internal i32 @AllocBigAlign() {
24 %addr = alloca i8, align 32 24 %addr = alloca i8, align 32
25 %v = ptrtoint i8* %addr to i32 25 %v = ptrtoint i8* %addr to i32
26 ret i32 %v 26 ret i32 %v
27 } 27 }
28 28
29 ; ASM-LABEL:AllocBigAlign: 29 ; ASM-LABEL:AllocBigAlign:
30 ; ASM-NEXT:.LAllocBigAlign$__0: 30 ; ASM-NEXT:.LAllocBigAlign$__0:
31 ; ASM-NEXT: push {fp}
32 ; ASM-NEXT: mov fp, sp
33 ; ASM-NEXT: sub sp, sp, #12
34 ; ASM-NEXT: bic sp, sp, #31
35 ; ASM-NEXT: sub sp, sp, #32
36 ; ASM-NEXT: mov r0, sp
37 ; ASM-NEXT: mov sp, fp
38 ; ASM-NEXT: pop {fp}
39 ; ASM-NEXT: # fp = def.pseudo
40 ; ASM-NEXT: bx lr
41
42 ; DIS-LABEL:00000000 <AllocBigAlign>: 31 ; DIS-LABEL:00000000 <AllocBigAlign>:
43 ; DIS-NEXT: 0: e52db004
44 ; DIS-NEXT: 4: e1a0b00d
45 ; DIS-NEXT: 8: e24dd00c
46 ; DIS-NEXT: c: e3cdd01f
47 ; DIS-NEXT: 10: e24dd020
48 ; DIS-NEXT: 14: e1a0000d
49 ; DIS-NEXT: 18: e1a0d00b
50 ; DIS-NEXT: 1c: e49db004
51 ; DIS-NEXT: 20: e12fff1e
52
53 ; IASM-LABEL:AllocBigAlign: 32 ; IASM-LABEL:AllocBigAlign:
54 ; IASM-NEXT:.LAllocBigAlign$__0: 33 ; IASM-NEXT:.LAllocBigAlign$__0:
34
35 ; ASM-NEXT: push {fp}
36 ; DIS-NEXT: 0: e52db004
55 ; IASM-NEXT: .byte 0x4 37 ; IASM-NEXT: .byte 0x4
56 ; IASM-NEXT: .byte 0xb0 38 ; IASM-NEXT: .byte 0xb0
57 ; IASM-NEXT: .byte 0x2d 39 ; IASM-NEXT: .byte 0x2d
58 ; IASM-NEXT: .byte 0xe5 40 ; IASM-NEXT: .byte 0xe5
59 41
42 ; ASM-NEXT: mov fp, sp
43 ; DIS-NEXT: 4: e1a0b00d
60 ; IASM: .byte 0xd 44 ; IASM: .byte 0xd
61 ; IASM-NEXT: .byte 0xb0 45 ; IASM-NEXT: .byte 0xb0
62 ; IASM-NEXT: .byte 0xa0 46 ; IASM-NEXT: .byte 0xa0
63 ; IASM-NEXT: .byte 0xe1 47 ; IASM-NEXT: .byte 0xe1
64 48
65 ; IASM: .byte 0xc 49 ; ASM-NEXT: sub sp, sp, #32
50 ; DIS-NEXT: 8: e24dd020
51 ; IASM: .byte 0x20
66 ; IASM-NEXT: .byte 0xd0 52 ; IASM-NEXT: .byte 0xd0
67 ; IASM-NEXT: .byte 0x4d 53 ; IASM-NEXT: .byte 0x4d
68 ; IASM-NEXT: .byte 0xe2 54 ; IASM-NEXT: .byte 0xe2
69 55
56 ; ASM-NEXT: bic sp, sp, #31
57 ; DIS-NEXT: c: e3cdd01f
70 ; IASM: .byte 0x1f 58 ; IASM: .byte 0x1f
71 ; IASM-NEXT: .byte 0xd0 59 ; IASM-NEXT: .byte 0xd0
72 ; IASM-NEXT: .byte 0xcd 60 ; IASM-NEXT: .byte 0xcd
73 ; IASM-NEXT: .byte 0xe3 61 ; IASM-NEXT: .byte 0xe3
74 62
75 ; IASM: .byte 0x20 63 ; ASM-NEXT: # sp = def.pseudo
76 ; IASM-NEXT: .byte 0xd0 64
77 ; IASM-NEXT: .byte 0x4d 65 ; ASM-NEXT: add r0, sp, #0
66 ; DIS-NEXT: 10: e28d0000
67 ; IASM: .byte 0x0
68 ; IASM-NEXT: .byte 0x0
69 ; IASM-NEXT: .byte 0x8d
78 ; IASM-NEXT: .byte 0xe2 70 ; IASM-NEXT: .byte 0xe2
79 71
80 ; IASM: .byte 0xd 72 ; ASM-NEXT: mov sp, fp
81 ; IASM-NEXT: .byte 0x0 73 ; DIS-NEXT: 14: e1a0d00b
82 ; IASM-NEXT: .byte 0xa0
83 ; IASM-NEXT: .byte 0xe1
84
85 ; IASM: .byte 0xb 74 ; IASM: .byte 0xb
86 ; IASM-NEXT: .byte 0xd0 75 ; IASM-NEXT: .byte 0xd0
87 ; IASM-NEXT: .byte 0xa0 76 ; IASM-NEXT: .byte 0xa0
88 ; IASM-NEXT: .byte 0xe1 77 ; IASM-NEXT: .byte 0xe1
89 78
79 ; ASM-NEXT: pop {fp}
80 ; DIS-NEXT: 18: e49db004
90 ; IASM-NEXT: .byte 0x4 81 ; IASM-NEXT: .byte 0x4
91 ; IASM-NEXT: .byte 0xb0 82 ; IASM-NEXT: .byte 0xb0
92 ; IASM-NEXT: .byte 0x9d 83 ; IASM-NEXT: .byte 0x9d
93 ; IASM-NEXT: .byte 0xe4 84 ; IASM-NEXT: .byte 0xe4
94 85
86 ; ASM-NEXT: # fp = def.pseudo
87
88 ; ASM-NEXT: bx lr
89 ; DIS-NEXT: 1c: e12fff1e
95 ; IASM: .byte 0x1e 90 ; IASM: .byte 0x1e
96 ; IASM-NEXT: .byte 0xff 91 ; IASM-NEXT: .byte 0xff
97 ; IASM-NEXT: .byte 0x2f 92 ; IASM-NEXT: .byte 0x2f
98 ; IASM-NEXT: .byte 0xe1 93 ; IASM-NEXT: .byte 0xe1
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/llvm2ice_tests/alloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698