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

Side by Side Diff: tests/lib/typed_data/int32x4_test.dart

Issue 2947783002: Avoid unaligned access fault in Int32x4/Float32x4::value() on ARM. (Closed)
Patch Set: . 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 unified diff | Download patch
« no previous file with comments | « tests/lib/typed_data/float64x2_functional_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter- threshold=10 --no-background-compilation 4 // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter- threshold=10 --no-background-compilation
5 // VMOptions=--no-intrinsify
5 6
6 library int32x4_test; 7 library int32x4_test;
7 8
8 import 'dart:typed_data'; 9 import 'dart:typed_data';
9 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
10 11
11 void testBadArguments() { 12 void testBadArguments() {
12 Expect.throws(() => new Int32x4(null, 2, 3, 4), (e) => e is ArgumentError); 13 Expect.throws(() => new Int32x4(null, 2, 3, 4), (e) => e is ArgumentError);
13 Expect.throws(() => new Int32x4(1, null, 3, 4), (e) => e is ArgumentError); 14 Expect.throws(() => new Int32x4(1, null, 3, 4), (e) => e is ArgumentError);
14 Expect.throws(() => new Int32x4(1, 2, null, 4), (e) => e is ArgumentError); 15 Expect.throws(() => new Int32x4(1, 2, null, 4), (e) => e is ArgumentError);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Expect.equals(expected, int32x4.w); 76 Expect.equals(expected, int32x4.w);
76 } 77 }
77 } 78 }
78 79
79 main() { 80 main() {
80 for (int i = 0; i < 20; i++) { 81 for (int i = 0; i < 20; i++) {
81 testBigArguments(); 82 testBigArguments();
82 testBadArguments(); 83 testBadArguments();
83 } 84 }
84 } 85 }
OLDNEW
« no previous file with comments | « tests/lib/typed_data/float64x2_functional_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698