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

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

Issue 1645683003: Add vmov between floating point registers to ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 11 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
« src/IceInstARM32.cpp ('K') | « tests_lit/assembler/arm32/vmov-fp.ll ('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/vpush.ll
diff --git a/tests_lit/assembler/arm32/vpush.ll b/tests_lit/assembler/arm32/vpush.ll
index ff6044b317ee908d2b2f6309662eae201ecf86dc..1aa9c7a08a26b1ce791db20ca3437284903667a5 100644
--- a/tests_lit/assembler/arm32/vpush.ll
+++ b/tests_lit/assembler/arm32/vpush.ll
@@ -7,112 +7,38 @@
; REQUIRES: allow_dump
; Compile using standalone assembler.
-; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
+; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \
; RUN: | FileCheck %s --check-prefix=ASM
; Show bytes in assembled standalone code.
; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
-; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
+; RUN: --args -O2 -reg-use=d9,d10 \
+; RUN: | FileCheck %s --check-prefix=DIS
; Compile using integrated assembler.
-; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
+; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \
; RUN: | FileCheck %s --check-prefix=IASM
; Show bytes in assembled integrated code.
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
-; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
+; RUN: --args -O2 -reg-use=d9,d10 \
+; RUN: | FileCheck %s --check-prefix=DIS
define internal double @testVpushVpop(double %v1, double %v2) {
; ASM-LABEL: testVpushVpop:
; DIS-LABEL: 00000000 <testVpushVpop>:
-; IASM-LABEL: testVpushVpop:
-entry:
-; ASM-NEXT: .LtestVpushVpop$entry:
-; IASM-NEXT: .LtestVpushVpop$entry:
-
-; ASM-NEXT: vpush {s16, s17, s18, s19}
-; DIS-NEXT: 0: ed2d8a04
-; IASM-NEXT: .byte 0x4
-; IASM-NEXT: .byte 0x8a
-; IASM-NEXT: .byte 0x2d
-; IASM-NEXT: .byte 0xed
-
-; ASM-NEXT: push {lr}
-; DIS-NEXT: 4: e52de004
-; IASM-NEXT: .byte 0x4
-; IASM-NEXT: .byte 0xe0
-; IASM-NEXT: .byte 0x2d
-; IASM-NEXT: .byte 0xe5
-
-; ASM-NEXT: sub sp, sp, #12
-; DIS-NEXT: 8: e24dd00c
-; IASM-NEXT: .byte 0xc
-; IASM-NEXT: .byte 0xd0
-; IASM-NEXT: .byte 0x4d
-; IASM-NEXT: .byte 0xe2
-
-; ASM-NEXT: vmov.f64 d8, d0
-; DIS-NEXT: c: eeb08b40
-; IASM-NEXT: vmov.f64 d8, d0
-
-; ASM-NEXT: vmov.f64 d9, d1
-; DIS-NEXT: 10: eeb09b41
-; IASM-NEXT: vmov.f64 d9, d1
+; ASM: vpush {s18, s19, s20, s21}
+; DIS: 0: ed2d9a04
+; IASM-NOT: vpush
call void @foo()
-
-; ASM-NEXT: bl foo
-; DIS-NEXT: 14: ebfffffe
-; IASM-NEXT: bl foo @ .word ebfffffe
-
%res = fadd double %v1, %v2
-
-; ASM-NEXT: vadd.f64 d8, d8, d9
-; DIS-NEXT: 18: ee388b09
-; IASM-NEXT: .byte 0x9
-; IASM-NEXT: .byte 0x8b
-; IASM-NEXT: .byte 0x38
-; IASM-NEXT: .byte 0xee
-
-; ASM-NEXT: vmov.f64 d0, d8
-; DIS-NEXT: 1c: eeb00b48
-; IASM-NEXT: vmov.f64 d0, d8
-
ret double %res
-; ASM-NEXT: add sp, sp, #12
-; DIS-NEXT: 20: e28dd00c
-; IASM-NEXT: .byte 0xc
-; IASM-NEXT: .byte 0xd0
-; IASM-NEXT: .byte 0x8d
-; IASM-NEXT: .byte 0xe2
-
-; ASM-NEXT: pop {lr}
-; ASM-NEXT: # lr = def.pseudo
-; DIS-NEXT: 24: e49de004
-; IASM-NEXT: .byte 0x4
-; IASM-NEXT: .byte 0xe0
-; IASM-NEXT: .byte 0x9d
-; IASM-NEXT: .byte 0xe4
-
-; ASM-NEXT: vpop {s16, s17, s18, s19}
-; ASM-NEXT: # s16 = def.pseudo
-; ASM-NEXT: # s17 = def.pseudo
-; ASM-NEXT: # s18 = def.pseudo
-; ASM-NEXT: # s19 = def.pseudo
-; DIS-NEXT: 28: ecbd8a04
-; IASM-NEXT: .byte 0x4
-; IASM-NEXT: .byte 0x8a
-; IASM-NEXT: .byte 0xbd
-; IASM-NEXT: .byte 0xec
-
-; ASM-NEXT: bx lr
-; DIS-NEXT: 2c: e12fff1e
-; IASM-NEXT: .byte 0x1e
-; IASM-NEXT: .byte 0xff
-; IASM-NEXT: .byte 0x2f
-; IASM-NEXT: .byte 0xe1
+; ASM: vpop {s18, s19, s20, s21}
+; DIS: 28: ecbd9a04
+; IASM-NOT: vpopd
}
« src/IceInstARM32.cpp ('K') | « tests_lit/assembler/arm32/vmov-fp.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698