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

Unified Diff: tests/lib/typed_data/int32x4_list_test.dart

Issue 394803002: Revert "Don't use a float32list as storage for simd." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/lib/typed_data/float32x4_test.dart ('k') | tests/lib/typed_data/int32x4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/typed_data/int32x4_list_test.dart
diff --git a/tests/lib/typed_data/int32x4_list_test.dart b/tests/lib/typed_data/int32x4_list_test.dart
index 03f7a8f4df36af5788438a1c5333a09949d12a87..1ee42b6521db41551a90a42f4b0e1f7da8a28629 100644
--- a/tests/lib/typed_data/int32x4_list_test.dart
+++ b/tests/lib/typed_data/int32x4_list_test.dart
@@ -132,55 +132,6 @@ testSublist(array) {
}
}
-void testSpecialValues(array) {
- var tests = [
- [0x8901234567890, 0x34567890],
- [0x89012A4567890, -1537836912],
- [0x80000000, -2147483648],
- [-0x80000000, -2147483648],
- [0x7fffffff, 2147483647],
- [-0x7fffffff, -2147483647],
- ];
- var int32x4;
-
- for (var test in tests) {
- var input = test[0];
- var expected = test[1];
-
- int32x4 = new Int32x4(input, 2, 3, 4);
- array[0] = int32x4;
- int32x4 = array[0];
- Expect.equals(expected, int32x4.x);
- Expect.equals(2, int32x4.y);
- Expect.equals(3, int32x4.z);
- Expect.equals(4, int32x4.w);
-
- int32x4 = new Int32x4(1, input, 3, 4);
- array[0] = int32x4;
- int32x4 = array[0];
- Expect.equals(1, int32x4.x);
- Expect.equals(expected, int32x4.y);
- Expect.equals(3, int32x4.z);
- Expect.equals(4, int32x4.w);
-
- int32x4 = new Int32x4(1, 2, input, 4);
- array[0] = int32x4;
- int32x4 = array[0];
- Expect.equals(1, int32x4.x);
- Expect.equals(2, int32x4.y);
- Expect.equals(expected, int32x4.z);
- Expect.equals(4, int32x4.w);
-
- int32x4 = new Int32x4(1, 2, 3, input);
- array[0] = int32x4;
- int32x4 = array[0];
- Expect.equals(1, int32x4.x);
- Expect.equals(2, int32x4.y);
- Expect.equals(3, int32x4.z);
- Expect.equals(expected, int32x4.w);
- }
-}
-
main() {
var list;
@@ -188,9 +139,6 @@ main() {
for (int i = 0; i < 20; i++) {
testLoadStore(list);
}
- for (int i = 0; i < 20; i++) {
- testSpecialValues(list);
- }
Uint32List uint32List = new Uint32List(32);
for (int i = 0; i < uint32List.length; i++) {
@@ -209,8 +157,5 @@ main() {
for (int i = 0; i < 20; i++) {
testListZero();
}
- for (int i = 0; i < 20; i++) {
- testSpecialValues(list);
- }
testLoadStoreDeoptDriver();
}
« no previous file with comments | « tests/lib/typed_data/float32x4_test.dart ('k') | tests/lib/typed_data/int32x4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698