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

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

Issue 1568623003: Add VSUB{S,D} instructions to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add comments to DART assembler. 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') | tests_lit/assembler/arm32/vsub.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/vadd.ll
diff --git a/tests_lit/assembler/arm32/vadd.ll b/tests_lit/assembler/arm32/vadd.ll
index c86102862a6bfcc5491c0a90411170f08cad6336..a03510340f949c626f54b901b93bcc0a4abb83cc 100644
--- a/tests_lit/assembler/arm32/vadd.ll
+++ b/tests_lit/assembler/arm32/vadd.ll
@@ -20,14 +20,14 @@
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
-define internal float @testVadd(float %v1, float %v2) {
-; ASM-LABEL: testVadd:
-; DIS-LABEL: 00000000 <testVadd>:
-; IASM-LABEL: testVadd:
+define internal float @testVaddFloat(float %v1, float %v2) {
+; ASM-LABEL: testVaddFloat:
+; DIS-LABEL: 00000000 <testVaddFloat>:
+; IASM-LABEL: testVaddFloat:
entry:
-; ASM-NEXT: .LtestVadd$entry:
-; IASM-NEXT: .LtestVadd$entry:
+; ASM-NEXT: .LtestVaddFloat$entry:
+; IASM-NEXT: .LtestVaddFloat$entry:
%res = fadd float %v1, %v2
@@ -40,3 +40,24 @@ entry:
ret float %res
}
+
+define internal double @testVaddDouble(double %v1, double %v2) {
+; ASM-LABEL: testVaddDouble:
+; DIS-LABEL: 00000010 <testVaddDouble>:
+; IASM-LABEL: testVaddDouble:
+
+entry:
+; ASM-NEXT: .LtestVaddDouble$entry:
+; IASM-NEXT: .LtestVaddDouble$entry:
+
+ %res = fadd double %v1, %v2
+
+; ASM-NEXT: vadd.f64 d0, d0, d1
+; DIS-NEXT: 10: ee300b01
+; IASM-NEXT: .byte 0x1
+; IASM-NEXT: .byte 0xb
+; IASM-NEXT: .byte 0x30
+; IASM-NEXT: .byte 0xee
+
+ ret double %res
+}
« no previous file with comments | « src/IceInstARM32.cpp ('k') | tests_lit/assembler/arm32/vsub.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698