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

Unified Diff: tests_lit/assembler/arm32/vldr-float4.ll

Issue 1635713002: Subzero. ARM32. Vector lowering. Add. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Incorporating Karl's feedback. 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
Index: tests_lit/assembler/arm32/vldr-float4.ll
diff --git a/tests_lit/assembler/arm32/vldr-float4.ll b/tests_lit/assembler/arm32/vldr-float4.ll
new file mode 100644
index 0000000000000000000000000000000000000000..f38497319d7dcb0646eca69b4db097921fafda0f
--- /dev/null
+++ b/tests_lit/assembler/arm32/vldr-float4.ll
@@ -0,0 +1,42 @@
+; Show that we know how to translate vector load instructions.
+
+; NOTE: Restricts S and D registers to ones that will better test S/D
Jim Stichnoth 2016/01/25 21:35:32 Same comment as in the other .ll file.
+; register encodings.
+
+; REQUIRES: allow_dump
+
+; Compile using standalone assembler.
+; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
+; RUN: -reg-use s20,s22,d20,d22,q0,q11 \
+; 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 \
+; RUN: -reg-use s20,s22,d20,d22,q0,q11 \
+; RUN: | FileCheck %s --check-prefix=DIS
+
+; Compile using integrated assembler.
+; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
+; RUN: -reg-use s20,s22,d20,d22,q0,q11 \
+; 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 \
+; RUN: -reg-use s20,s22,d20,d22,q0,q11 \
+; RUN: | FileCheck %s --check-prefix=DIS
+
+define internal <4 x float> @testDerefFloat4(<4 x float> *%p) {
+; ASM-LABEL: testDerefFloat4:
+; DIS-LABEL: 00000000 <testDerefFloat4>:
+; IASM-LABEL: testDerefFloat4:
+
+entry:
+ %ret = load <4 x float>, <4 x float>* %p, align 4
+; ASM: vld1.64 q0, [r0]
+; DIS: 0: f4200acf
+
+ ret <4 x float> %ret
+}
+
Jim Stichnoth 2016/01/25 21:35:32 Remove trailing blank line, to placate git.
« tests_lit/assembler/arm32/add-vec.ll ('K') | « tests_lit/assembler/arm32/add-vec.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698