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

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

Issue 1415943009: Add BIC(register) and BIC(immediate) to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
« 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 know how to translate bic.
2
3 ; NOTE: We use -O2 to get rid of memory stores.
4
5 ; REQUIRES: allow_dump
6
7 ; Compile using standalone assembler.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=ASM
10
11 ; Show bytes in assembled standalone code.
12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
13 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
14
15 ; Compile using integrated assembler.
16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
17 ; RUN: | FileCheck %s --check-prefix=IASM
18
19 ; Show bytes in assembled integrated code.
20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
21 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
22
23 define internal i32 @AllocBigAlign() {
24 %addr = alloca i8, align 32
25 %v = ptrtoint i8* %addr to i32
26 ret i32 %v
27 }
28
29 ; ASM-LABEL:AllocBigAlign:
30 ; ASM:.LAllocBigAlign$__0:
31 ; ASM: push {fp}
32 ; ASM: mov fp, sp
33 ; ASM: sub sp, sp, #12
34 ; ASM: bic sp, sp, #31
35 ; ASM: sub sp, sp, #32
36 ; ASM: mov r0, sp
37 ; ASM: mov sp, fp
38 ; ASM: pop {fp}
39 ; ASM: # fp = def.pseudo
40 ; ASM: bx lr
41
42 ; 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:
54 ; IASM-NEXT:.LAllocBigAlign$__0:
55 ; IASM: push {fp}
56 ; IASM: .byte 0xd
57 ; IASM-NEXT: .byte 0xb0
58 ; IASM-NEXT: .byte 0xa0
59 ; IASM-NEXT: .byte 0xe1
60
61 ; IASM: .byte 0xc
62 ; IASM-NEXT: .byte 0xd0
63 ; IASM-NEXT: .byte 0x4d
64 ; IASM-NEXT: .byte 0xe2
65
66 ; IASM: .byte 0x1f
67 ; IASM-NEXT: .byte 0xd0
68 ; IASM-NEXT: .byte 0xcd
69 ; IASM-NEXT: .byte 0xe3
70
71 ; IASM: .byte 0x20
72 ; IASM-NEXT: .byte 0xd0
73 ; IASM-NEXT: .byte 0x4d
74 ; IASM-NEXT: .byte 0xe2
75
76 ; IASM: .byte 0xd
77 ; IASM-NEXT: .byte 0x0
78 ; IASM-NEXT: .byte 0xa0
79 ; IASM-NEXT: .byte 0xe1
80
81 ; IASM: .byte 0xb
82 ; IASM-NEXT: .byte 0xd0
83 ; IASM-NEXT: .byte 0xa0
84 ; IASM-NEXT: .byte 0xe1
85 ; IASM: pop {fp}
86 ; IASM: .byte 0x1e
87 ; IASM-NEXT: .byte 0xff
88 ; IASM-NEXT: .byte 0x2f
89 ; IASM-NEXT: .byte 0xe1
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