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

Unified Diff: runtime/vm/assembler_arm64_test.cc

Issue 616873003: Use UnboxedInt32 and UnboxedUint32 representation for LoadIndexedInstr (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: runtime/vm/assembler_arm64_test.cc
diff --git a/runtime/vm/assembler_arm64_test.cc b/runtime/vm/assembler_arm64_test.cc
index b3728f65cb302734358b82aaeebe1438ffaea30a..6bb2e33dcf740b24172e1e6b85cdf9f0d4616102 100644
--- a/runtime/vm/assembler_arm64_test.cc
+++ b/runtime/vm/assembler_arm64_test.cc
@@ -1826,14 +1826,28 @@ ASSEMBLER_TEST_RUN(Fcvtzds, test) {
}
-ASSEMBLER_TEST_GENERATE(Scvtfd, assembler) {
+ASSEMBLER_TEST_GENERATE(Scvtfdx, assembler) {
__ LoadImmediate(R0, 42, kNoPP);
- __ scvtfd(V0, R0);
+ __ scvtfdx(V0, R0);
__ ret();
}
-ASSEMBLER_TEST_RUN(Scvtfd, test) {
+ASSEMBLER_TEST_RUN(Scvtfdx, test) {
+ typedef double (*DoubleReturn)() DART_UNUSED;
+ EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry()));
+}
+
+
+ASSEMBLER_TEST_GENERATE(Scvtfdw, assembler) {
+ // Fill upper 32-bits with garbage.
+ __ LoadImmediate(R0, 0x111111110000002A, kNoPP);
+ __ scvtfdw(V0, R0);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Scvtfdw, test) {
typedef double (*DoubleReturn)() DART_UNUSED;
EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry()));
}

Powered by Google App Engine
This is Rietveld 408576698