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

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

Issue 1568933002: Add VDIVS and VDIVD instructions to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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
« 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/vdiv.ll
diff --git a/tests_lit/assembler/arm32/vadd.ll b/tests_lit/assembler/arm32/vdiv.ll
similarity index 54%
copy from tests_lit/assembler/arm32/vadd.ll
copy to tests_lit/assembler/arm32/vdiv.ll
index a03510340f949c626f54b901b93bcc0a4abb83cc..774d1836bd9163610a8c696b9a522f708b19fc9a 100644
--- a/tests_lit/assembler/arm32/vadd.ll
+++ b/tests_lit/assembler/arm32/vdiv.ll
@@ -1,4 +1,4 @@
-; Show that we know how to translate vadd.
+; Show that we know how to translate vdiv.
; NOTE: We use -O2 to get rid of memory stores.
@@ -20,43 +20,43 @@
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
-define internal float @testVaddFloat(float %v1, float %v2) {
-; ASM-LABEL: testVaddFloat:
-; DIS-LABEL: 00000000 <testVaddFloat>:
-; IASM-LABEL: testVaddFloat:
+define internal float @testVdivFloat(float %v1, float %v2) {
+; ASM-LABEL: testVdivFloat:
+; DIS-LABEL: 00000000 <testVdivFloat>:
+; IASM-LABEL: testVdivFloat:
entry:
-; ASM-NEXT: .LtestVaddFloat$entry:
-; IASM-NEXT: .LtestVaddFloat$entry:
+; ASM-NEXT: .LtestVdivFloat$entry:
+; IASM-NEXT: .LtestVdivFloat$entry:
- %res = fadd float %v1, %v2
+ %res = fdiv float %v1, %v2
-; ASM-NEXT: vadd.f32 s0, s0, s1
-; DIS-NEXT: 0: ee300a20
+; ASM-NEXT: vdiv.f32 s0, s0, s1
+; DIS-NEXT: 0: ee800a20
; IASM-NEXT: .byte 0x20
; IASM-NEXT: .byte 0xa
-; IASM-NEXT: .byte 0x30
+; IASM-NEXT: .byte 0x80
; IASM-NEXT: .byte 0xee
ret float %res
}
-define internal double @testVaddDouble(double %v1, double %v2) {
-; ASM-LABEL: testVaddDouble:
-; DIS-LABEL: 00000010 <testVaddDouble>:
-; IASM-LABEL: testVaddDouble:
+define internal double @testVdivDouble(double %v1, double %v2) {
+; ASM-LABEL: testVdivDouble:
+; DIS-LABEL: 00000010 <testVdivDouble>:
+; IASM-LABEL: testVdivDouble:
entry:
-; ASM-NEXT: .LtestVaddDouble$entry:
-; IASM-NEXT: .LtestVaddDouble$entry:
+; ASM-NEXT: .LtestVdivDouble$entry:
+; IASM-NEXT: .LtestVdivDouble$entry:
- %res = fadd double %v1, %v2
+ %res = fdiv double %v1, %v2
-; ASM-NEXT: vadd.f64 d0, d0, d1
-; DIS-NEXT: 10: ee300b01
+; ASM-NEXT: vdiv.f64 d0, d0, d1
+; DIS-NEXT: 10: ee800b01
; IASM-NEXT: .byte 0x1
; IASM-NEXT: .byte 0xb
-; IASM-NEXT: .byte 0x30
+; IASM-NEXT: .byte 0x80
; IASM-NEXT: .byte 0xee
ret double %res
« 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