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

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

Issue 1636473002: Add the VMRS instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix test case. 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/vmrs.ll
diff --git a/tests_lit/assembler/arm32/veor.ll b/tests_lit/assembler/arm32/vmrs.ll
similarity index 64%
copy from tests_lit/assembler/arm32/veor.ll
copy to tests_lit/assembler/arm32/vmrs.ll
index 8b138a1760b417ec33bdd49500e25fb9dd3618bc..85763b13642b2cfd2cb9f220e33658304f080c62 100644
--- a/tests_lit/assembler/arm32/veor.ll
+++ b/tests_lit/assembler/arm32/vmrs.ll
@@ -1,5 +1,4 @@
-; Show that we know how to translate veor. Does this by noting that
-; loading a double 0.0 introduces a veor.
+; Test the "vmrs APSR_nzcv, FPSCR" form of the VMRS instruction.
; REQUIRES: allow_dump
@@ -21,17 +20,19 @@
; RUN: --args -Om1 \
; RUN: | FileCheck %s --check-prefix=DIS
-define internal double @testVeor() {
-; ASM-LABEL: testVeor:
-; DIS: 00000000 <testVeor>:
+define internal i32 @testVmrsASPR_nzcv() {
+; ASM-LABEL: testVmrsASPR_nzcv:
+; DIS-LABEL: 00000000 <testVmrsASPR_nzcv>:
entry:
-; ASM: .LtestVeor$entry:
+; ASM: .LtestVmrsASPR_nzcv$entry:
- ret double 0.0
+ %test = fcmp olt float 0.0, 0.0
-; ASM: veor.f64 d0, d0, d0
-; DIS: 0: f3000110
-; IASM-NOT: veor
+; ASM: vmrs APSR_nzcv, FPSCR
+; DIS: 18: eef1fa10
+; IASM-NOT: vmrs
+ %result = zext i1 %test to i32
+ ret i32 %result
}
« 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