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

Unified Diff: tests_lit/assembler/arm32/add.ll

Issue 1424773002: Add ADC (immediate) instruction to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/add.ll
diff --git a/tests_lit/assembler/arm32/add.ll b/tests_lit/assembler/arm32/add.ll
index 2aba943aa8025a44ad2cbb9821e4a037c2f6fa9b..420c696436f91455906e800d419daebaac3b9b1b 100644
--- a/tests_lit/assembler/arm32/add.ll
+++ b/tests_lit/assembler/arm32/add.ll
@@ -71,3 +71,28 @@ define internal i32 @Add2Regs(i32 %p1, i32 %p2) {
; IASM-NEXT: .byte 0xff
; IASM-NEXT: .byte 0x2f
; IASM-NEXT: .byte 0xe1
+
+define internal i64 @addI64ToR0R1(i64 %p) {
+ %v = add i64 %p, 1
+ ret i64 %v
+}
+
+; ASM-LABEL:addI64ToR0R1:
+; ASM-NEXT:.LaddI64ToR0R1$__0:
+; ASM-NEXT: adds r0, r0, #1
+; ASM-NEXT: adc r1, r1, #0
+
+; DIS-LABEL:00000020 <addI64ToR0R1>:
+; DIS-NEXT: 20: e2900001
+; DIS-NEXT: 24: e2a11000
+
+; IASM-LABEL:addI64ToR0R1:
+; IASM-NEXT:.LaddI64ToR0R1$__0:
+; IASM-NEXT: .byte 0x1
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x90
+; IASM-NEXT: .byte 0xe2
+; IASM-NEXT: .byte 0x0
+; IASM-NEXT: .byte 0x10
+; IASM-NEXT: .byte 0xa1
+; IASM-NEXT: .byte 0xe2
« 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