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

Unified Diff: tests_lit/assembler/arm32/vmov-imm.ll

Issue 1624383004: Add VMOV(immediate) instructions to the 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') | « 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/vmov-imm.ll
diff --git a/tests_lit/assembler/arm32/vmrs.ll b/tests_lit/assembler/arm32/vmov-imm.ll
similarity index 52%
copy from tests_lit/assembler/arm32/vmrs.ll
copy to tests_lit/assembler/arm32/vmov-imm.ll
index f635389bf9ffbe9c226c090f9dd8cb392ddbbee8..a7749f124d6f9d26481de12e4303891b7cb04962 100644
--- a/tests_lit/assembler/arm32/vmrs.ll
+++ b/tests_lit/assembler/arm32/vmov-imm.ll
@@ -1,4 +1,4 @@
-; Test the "vmrs APSR_nzcv, FPSCR" form of the VMRS instruction.
+; Test moving constants into VPF registers.
; REQUIRES: allow_dump
@@ -20,19 +20,32 @@
; RUN: --args -Om1 \
; RUN: | FileCheck %s --check-prefix=DIS
-define internal i32 @testVmrsASPR_nzcv() {
-; ASM-LABEL: testVmrsASPR_nzcv:
-; DIS-LABEL: 00000000 <testVmrsASPR_nzcv>:
+define internal void @testMoveDouble() {
+; ASM-LABEL: testMoveDouble:
+; DIS-LABEL: 00000000 <testMoveDouble>:
entry:
-; ASM: .LtestVmrsASPR_nzcv$entry:
+ %addr = inttoptr i32 0 to double*
+ store double 0.5, double* %addr, align 8
- %test = fcmp olt float 0.0, 0.0
+; ASM: vmov.f64 d0, #5.000000e-01
+; DIS: 4: eeb60b00
+; IASM-NOT: vmov.f64
-; ASM: vmrs APSR_nzcv, FPSCR
-; DIS: 14: eef1fa10
-; IASM-NOT: vmrs
+ ret void
+}
+
+define internal void @testMoveFloat() {
+; ASM-LABEL: testMoveFloat:
+; DIS-LABEL: 00000010 <testMoveFloat>:
+
+entry:
+ %addr = inttoptr i32 0 to float*
+ store float 0.5, float* %addr, align 4
+
+; ASM: vmov.f32 s0, #5.000000e-01
+; DIS: 14: eeb60a00
+; IASM-NOT: vmov.f32
- %result = zext i1 %test to i32
- ret i32 %result
+ ret void
}
« src/IceInstARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698