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

Unified Diff: runtime/vm/assembler_arm64_test.cc

Issue 2940883008: [arm, arm64] Implemented unaligned scalar float access. (Closed)
Patch Set: piecewise float64 Created 3 years, 6 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 | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/constants_arm64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64_test.cc
diff --git a/runtime/vm/assembler_arm64_test.cc b/runtime/vm/assembler_arm64_test.cc
index f7fde66df8e8aa54e2d3ad6a2df169ffe0788cad..566a9a323ae669fb12df34e2814cc79462fd1359 100644
--- a/runtime/vm/assembler_arm64_test.cc
+++ b/runtime/vm/assembler_arm64_test.cc
@@ -2113,6 +2113,38 @@ ASSEMBLER_TEST_RUN(Fmovdr, test) {
}
+ASSEMBLER_TEST_GENERATE(Fmovrs, assembler) {
+ __ LoadDImmediate(V2, 1.0);
+ __ fcvtsd(V1, V2);
+ __ fmovrs(R0, V1);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Fmovrs, test) {
+ typedef int64_t (*Int64Return)() DART_UNUSED;
+ int64_t result = EXECUTE_TEST_CODE_INT64(Int64Return, test->entry());
+ const uint32_t one = bit_cast<uint32_t, float>(1.0f);
+ EXPECT_EQ(one, static_cast<uint32_t>(result));
+}
+
+
+ASSEMBLER_TEST_GENERATE(Fmovsr, assembler) {
+ __ LoadImmediate(R2, bit_cast<uint32_t, float>(1.0f));
+ __ fmovsr(V1, R2);
+ __ fmovrs(R0, V1);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Fmovsr, test) {
+ typedef int64_t (*Int64Return)() DART_UNUSED;
+ int64_t result = EXECUTE_TEST_CODE_INT64(Int64Return, test->entry());
+ const uint32_t one = bit_cast<uint32_t, float>(1.0f);
+ EXPECT_EQ(one, static_cast<uint32_t>(result));
+}
+
+
ASSEMBLER_TEST_GENERATE(FldrdFstrdPrePostIndex, assembler) {
__ SetupDartSP();
__ LoadDImmediate(V1, 42.0);
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/constants_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698