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

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

Issue 1412923006: Add orr (register) and orr (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
« src/DartARM32/assembler_arm.cc ('K') | « 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 or.
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 @Or1WithR0(i32 %p) {
24 %v = or i32 %p, 1
25 ret i32 %v
26 }
27
28 ; ASM-LABEL:Or1WithR0:
29 ; ASM-NEXT:.LOr1WithR0$__0:
30 ; ASM-NEXT: orr r0, r0, #1
31
32 ; DIS-LABEL:00000000 <Or1WithR0>:
33 ; DIS-NEXT: 0: e3800001
34
35 ; IASM-LABEL:Or1WithR0:
36 ; IASM-NEXT:.LOr1WithR0$__0:
37 ; IASM-NEXT: .byte 0x1
38 ; IASM-NEXT: .byte 0x0
39 ; IASM-NEXT: .byte 0x80
40 ; IASM-NEXT: .byte 0xe3
41
42 define internal i32 @Or2Regs(i32 %p1, i32 %p2) {
43 %v = or i32 %p1, %p2
44 ret i32 %v
45 }
46
47 ; ASM-LABEL:Or2Regs:
48 ; ASM-NEXT:.LOr2Regs$__0:
49 ; ASM-NEXT: orr r0, r0, r1
50
51 ; DIS-LABEL:00000010 <Or2Regs>:
52 ; DIS-NEXT: 10: e1800001
53
54 ; IASM-LABEL:Or2Regs:
55 ; IASM-NEXT:.LOr2Regs$__0:
56 ; IASM-NEXT: .byte 0x1
57 ; IASM-NEXT: .byte 0x0
58 ; IASM-NEXT: .byte 0x80
59 ; IASM-NEXT: .byte 0xe1
60
61 define internal i64 @OrI64WithR0R1(i64 %p) {
62 %v = or i64 %p, 1
63 ret i64 %v
64 }
65
66 ; ASM-LABEL:OrI64WithR0R1:
67 ; ASM-NEXT:.LOrI64WithR0R1$__0:
68 ; ASM-NEXT: orr r0, r0, #1
69 ; ASM-NEXT: orr r1, r1, #0
70
71 ; DIS-LABEL:00000020 <OrI64WithR0R1>:
72 ; DIS-NEXT: 20: e3800001
73 ; DIS-NEXT: 24: e3811000
74
75 ; IASM-LABEL:OrI64WithR0R1:
76 ; IASM-NEXT:.LOrI64WithR0R1$__0:
77 ; IASM-NEXT: .byte 0x1
78 ; IASM-NEXT: .byte 0x0
79 ; IASM-NEXT: .byte 0x80
80 ; IASM-NEXT: .byte 0xe3
81 ; IASM-NEXT: .byte 0x0
82 ; IASM-NEXT: .byte 0x10
83 ; IASM-NEXT: .byte 0x81
84 ; IASM-NEXT: .byte 0xe3
85
86
87 define internal i64 @OrI64Regs(i64 %p1, i64 %p2) {
88 %v = or i64 %p1, %p2
89 ret i64 %v
90 }
91
92 ; ASM-LABEL:OrI64Regs:
93 ; ASM-NEXT:.LOrI64Regs$__0:
94 ; ASM-NEXT: orr r0, r0, r2
95 ; ASM-NEXT: orr r1, r1, r3
96
97 ; DIS-LABEL:00000030 <OrI64Regs>:
98 ; DIS-NEXT: 30: e1800002
99 ; DIS-NEXT: 34: e1811003
100
101 ; IASM-LABEL:OrI64Regs:
102 ; IASM-NEXT:.LOrI64Regs$__0:
103 ; IASM-NEXT: .byte 0x2
104 ; IASM-NEXT: .byte 0x0
105 ; IASM-NEXT: .byte 0x80
106 ; IASM-NEXT: .byte 0xe1
107 ; IASM-NEXT: .byte 0x3
108 ; IASM-NEXT: .byte 0x10
109 ; IASM-NEXT: .byte 0x81
110 ; IASM-NEXT: .byte 0xe1
OLDNEW
« src/DartARM32/assembler_arm.cc ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698