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

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

Issue 1410183004: Add instruction 'adc (register)' to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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/IceAssemblerARM32.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
1 ; Show that we know how to translate add. 1 ; Show that we know how to translate add.
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ; IASM-LABEL:addI64ToR0R1: 89 ; IASM-LABEL:addI64ToR0R1:
90 ; IASM-NEXT:.LaddI64ToR0R1$__0: 90 ; IASM-NEXT:.LaddI64ToR0R1$__0:
91 ; IASM-NEXT: .byte 0x1 91 ; IASM-NEXT: .byte 0x1
92 ; IASM-NEXT: .byte 0x0 92 ; IASM-NEXT: .byte 0x0
93 ; IASM-NEXT: .byte 0x90 93 ; IASM-NEXT: .byte 0x90
94 ; IASM-NEXT: .byte 0xe2 94 ; IASM-NEXT: .byte 0xe2
95 ; IASM-NEXT: .byte 0x0 95 ; IASM-NEXT: .byte 0x0
96 ; IASM-NEXT: .byte 0x10 96 ; IASM-NEXT: .byte 0x10
97 ; IASM-NEXT: .byte 0xa1 97 ; IASM-NEXT: .byte 0xa1
98 ; IASM-NEXT: .byte 0xe2 98 ; IASM-NEXT: .byte 0xe2
99
100 define internal i64 @AddI64Regs(i64 %p1, i64 %p2) {
101 %v = add i64 %p1, %p2
102 ret i64 %v
103 }
104
105 ; ASM-LABEL:AddI64Regs:
106 ; ASM-NEXT:.LAddI64Regs$__0:
107 ; ASM-NEXT: adds r0, r0, r2
108 ; ASM-NEXT: adc r1, r1, r3
109
110 ; DIS-LABEL:00000030 <AddI64Regs>:
111 ; DIS-NEXT: 30: e0900002
112 ; DIS-NEXT: 34: e0a11003
113
114 ; IASM-LABEL:AddI64Regs:
115 ; IASM-NEXT:.LAddI64Regs$__0:
116 ; IASM-NEXT: .byte 0x2
117 ; IASM-NEXT: .byte 0x0
118 ; IASM-NEXT: .byte 0x90
119 ; IASM-NEXT: .byte 0xe0
120 ; IASM-NEXT: .byte 0x3
121 ; IASM-NEXT: .byte 0x10
122 ; IASM-NEXT: .byte 0xa1
123 ; IASM-NEXT: .byte 0xe0
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698