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

Unified Diff: tests/language/vm/unaligned_float_access_register_index_test.dart

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
Index: tests/language/vm/unaligned_float_access_register_index_test.dart
diff --git a/tests/language/vm/unaligned_float_access_register_index_test.dart b/tests/language/vm/unaligned_float_access_register_index_test.dart
index 334efe5f268fa52487b5a2cde6fff943a5197283..4042ec3d8d75e5397ccae096d782da846ebf498b 100644
--- a/tests/language/vm/unaligned_float_access_register_index_test.dart
+++ b/tests/language/vm/unaligned_float_access_register_index_test.dart
@@ -9,16 +9,16 @@ import 'package:expect/expect.dart';
unalignedFloat32() {
var bytes = new ByteData(64);
for (var i = 0; i < 4; i++) {
- bytes.setFloat32(i, 16.25);
- Expect.equals(16.25, bytes.getFloat32(i));
+ bytes.setFloat32(i, 16.25, Endianness.HOST_ENDIAN);
+ Expect.equals(16.25, bytes.getFloat32(i, Endianness.HOST_ENDIAN));
}
}
unalignedFloat64() {
var bytes = new ByteData(64);
for (var i = 0; i < 8; i++) {
- bytes.setFloat64(i, 16.25);
- Expect.equals(16.25, bytes.getFloat64(i));
+ bytes.setFloat64(i, 16.25, Endianness.HOST_ENDIAN);
+ Expect.equals(16.25, bytes.getFloat64(i, Endianness.HOST_ENDIAN));
}
}

Powered by Google App Engine
This is Rietveld 408576698