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

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

Issue 1427023004: Add UDIV to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove tabs. 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/udiv.ll
diff --git a/tests_lit/assembler/arm32/sdiv.ll b/tests_lit/assembler/arm32/udiv.ll
similarity index 75%
copy from tests_lit/assembler/arm32/sdiv.ll
copy to tests_lit/assembler/arm32/udiv.ll
index 91031e51f196adc6db2069c2cf77841fa583f910..17dd6764f9630a7e70821e0ce31023e3e199f8e3 100644
--- a/tests_lit/assembler/arm32/sdiv.ll
+++ b/tests_lit/assembler/arm32/udiv.ll
@@ -1,4 +1,4 @@
-; Show that we know how to translate sdiv
+; Show that we know how to translate udiv
; NOTE: We use -O2 to get rid of memory stores.
@@ -20,29 +20,29 @@
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
; RUN: --args -O2 -mattr=hwdiv-arm | FileCheck %s --check-prefix=DIS
-define internal i32 @SdivTwoRegs(i32 %a, i32 %b) {
- %v = sdiv i32 %a, %b
+define internal i32 @UdivTwoRegs(i32 %a, i32 %b) {
+ %v = udiv i32 %a, %b
ret i32 %v
}
-; ASM-LABEL:SdivTwoRegs:
-; ASM-NEXT:.LSdivTwoRegs$__0:
+; ASM-LABEL:UdivTwoRegs:
+; ASM-NEXT:.LUdivTwoRegs$__0:
; ASM-NEXT: tst r1, r1
-; ASM-NEXT: bne .LSdivTwoRegs$local$__0
+; ASM-NEXT: bne .LUdivTwoRegs$local$__0
; ASM-NEXT: .long 0xe7fedef0
-; ASM-NEXT:.LSdivTwoRegs$local$__0:
-; ASM-NEXT: sdiv r0, r0, r1
+; ASM-NEXT:.LUdivTwoRegs$local$__0:
+; ASM-NEXT: udiv r0, r0, r1
; ASM-NEXT: bx lr
-; DIS-LABEL:00000000 <SdivTwoRegs>:
+; DIS-LABEL:00000000 <UdivTwoRegs>:
; DIS-NEXT: 0: e1110001
; DIS-NEXT: 4: 1a000000
; DIS-NEXT: 8: e7fedef0
-; DIS-NEXT: c: e710f110
+; DIS-NEXT: c: e730f110
; DIS-NEXT: 10: e12fff1e
-; IASM-LABEL:SdivTwoRegs:
-; IASM-NEXT:.LSdivTwoRegs$__0:
+; IASM-LABEL:UdivTwoRegs:
+; IASM-NEXT:.LUdivTwoRegs$__0:
; IASM-NEXT: tst r1, r1
; IASM-NEXT: .byte 0x0
; IASM-NEXT: .byte 0x0
@@ -51,7 +51,7 @@ define internal i32 @SdivTwoRegs(i32 %a, i32 %b) {
; IASM-NEXT: .long 0xe7fedef0
; IASM-NEXT: .byte 0x10
; IASM-NEXT: .byte 0xf1
-; IASM-NEXT: .byte 0x10
+; IASM-NEXT: .byte 0x30
; IASM-NEXT: .byte 0xe7
; IASM-NEXT: .byte 0x1e
; IASM-NEXT: .byte 0xff
« 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