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

Unified Diff: tests/language/vm/unaligned_integer_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
« no previous file with comments | « tests/language/vm/unaligned_integer_access_literal_index_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/unaligned_integer_access_register_index_test.dart
diff --git a/tests/language/vm/unaligned_integer_access_register_index_test.dart b/tests/language/vm/unaligned_integer_access_register_index_test.dart
index 7c49cce8dfc3530d5520960a6805e12c12047ccf..58b5076ca49cd23ef8cda36d80d80a217ad80fb6 100644
--- a/tests/language/vm/unaligned_integer_access_register_index_test.dart
+++ b/tests/language/vm/unaligned_integer_access_register_index_test.dart
@@ -9,48 +9,48 @@ import 'package:expect/expect.dart';
unalignedUint16() {
var bytes = new ByteData(64);
for (var i = 0; i < 2; i++) {
- bytes.setUint16(i, 0xABCD);
- Expect.equals(0xABCD, bytes.getUint16(i));
+ bytes.setUint16(i, 0xABCD, Endianness.HOST_ENDIAN);
+ Expect.equals(0xABCD, bytes.getUint16(i, Endianness.HOST_ENDIAN));
}
}
unalignedInt16() {
var bytes = new ByteData(64);
for (var i = 0; i < 2; i++) {
- bytes.setInt16(i, -0x1234);
- Expect.equals(-0x1234, bytes.getInt16(i));
+ bytes.setInt16(i, -0x1234, Endianness.HOST_ENDIAN);
+ Expect.equals(-0x1234, bytes.getInt16(i, Endianness.HOST_ENDIAN));
}
}
unalignedUint32() {
var bytes = new ByteData(64);
for (var i = 0; i < 4; i++) {
- bytes.setUint32(i, 0xABCDABCD);
- Expect.equals(0xABCDABCD, bytes.getUint32(i));
+ bytes.setUint32(i, 0xABCDABCD, Endianness.HOST_ENDIAN);
+ Expect.equals(0xABCDABCD, bytes.getUint32(i, Endianness.HOST_ENDIAN));
}
}
unalignedInt32() {
var bytes = new ByteData(64);
for (var i = 0; i < 4; i++) {
- bytes.setInt32(i, -0x12341234);
- Expect.equals(-0x12341234, bytes.getInt32(i));
+ bytes.setInt32(i, -0x12341234, Endianness.HOST_ENDIAN);
+ Expect.equals(-0x12341234, bytes.getInt32(i, Endianness.HOST_ENDIAN));
}
}
unalignedUint64() {
var bytes = new ByteData(64);
for (var i = 0; i < 8; i++) {
- bytes.setUint64(i, 0xABCDABCD);
- Expect.equals(0xABCDABCD, bytes.getUint64(i));
+ bytes.setUint64(i, 0xABCDABCD12345678, Endianness.HOST_ENDIAN);
+ Expect.equals(0xABCDABCD12345678, bytes.getUint64(i, Endianness.HOST_ENDIAN));
}
}
unalignedInt64() {
var bytes = new ByteData(64);
for (var i = 0; i < 8; i++) {
- bytes.setInt64(i, -0x12341234);
- Expect.equals(-0x12341234, bytes.getInt64(i));
+ bytes.setInt64(i, -0x12341234ABCDABCD, Endianness.HOST_ENDIAN);
+ Expect.equals(-0x12341234ABCDABCD, bytes.getInt64(i, Endianness.HOST_ENDIAN));
}
}
« no previous file with comments | « tests/language/vm/unaligned_integer_access_literal_index_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698