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

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

Issue 56023004: Replace Uint32x4/Uint32x4List with Int32x4/Int32x4List (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/int32x4_shuffle_test.dart ('k') | tests/lib/typed_data/uint32x4_arithmetic_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_sign_mask_test.dart
diff --git a/tests/lib/typed_data/uint32x4_sign_mask_test.dart b/tests/lib/typed_data/int32x4_sign_mask_test.dart
similarity index 65%
rename from tests/lib/typed_data/uint32x4_sign_mask_test.dart
rename to tests/lib/typed_data/int32x4_sign_mask_test.dart
index 052d0bf287c0fb073828783e1f6e9decd6c49cd5..b4e620ea7385928900e946deec90a6d3525b1d12 100644
--- a/tests/lib/typed_data/uint32x4_sign_mask_test.dart
+++ b/tests/lib/typed_data/int32x4_sign_mask_test.dart
@@ -4,45 +4,45 @@
// VMOptions=--optimization-counter-threshold=10
// Library tag to be able to run in html test framework.
-library uint32x4_sign_mask;
+library int32x4_sign_mask;
import 'dart:typed_data';
import 'package:expect/expect.dart';
void testImmediates() {
- var f = new Uint32x4(1, 2, 3, 4);
+ var f = new Int32x4(1, 2, 3, 4);
var m = f.signMask;
Expect.equals(0x0, m);
- f = new Uint32x4(-1, -2, -3, -4);
+ f = new Int32x4(-1, -2, -3, -4);
m = f.signMask;
Expect.equals(0xf, m);
- f = new Uint32x4.bool(true, false, false, false);
+ f = new Int32x4.bool(true, false, false, false);
m = f.signMask;
Expect.equals(0x1, m);
- f = new Uint32x4.bool(false, true, false, false);
+ f = new Int32x4.bool(false, true, false, false);
m = f.signMask;
Expect.equals(0x2, m);
- f = new Uint32x4.bool(false, false, true, false);
+ f = new Int32x4.bool(false, false, true, false);
m = f.signMask;
Expect.equals(0x4, m);
- f = new Uint32x4.bool(false, false, false, true);
+ f = new Int32x4.bool(false, false, false, true);
m = f.signMask;
Expect.equals(0x8, m);
}
void testZero() {
- var f = new Uint32x4(0, 0, 0, 0);
+ var f = new Int32x4(0, 0, 0, 0);
var m = f.signMask;
Expect.equals(0x0, m);
- f = new Uint32x4(-0, -0, -0, -0);
+ f = new Int32x4(-0, -0, -0, -0);
m = f.signMask;
Expect.equals(0x0, m);
}
void testLogic() {
- var a = new Uint32x4(0x80000000, 0x80000000, 0x80000000, 0x80000000);
- var b = new Uint32x4(0x70000000, 0x70000000, 0x70000000, 0x70000000);
- var c = new Uint32x4(0xf0000000, 0xf0000000, 0xf0000000, 0xf0000000);
+ var a = new Int32x4(0x80000000, 0x80000000, 0x80000000, 0x80000000);
+ var b = new Int32x4(0x70000000, 0x70000000, 0x70000000, 0x70000000);
+ var c = new Int32x4(0xf0000000, 0xf0000000, 0xf0000000, 0xf0000000);
var m1 = (a & c).signMask;
Expect.equals(0xf, m1);
var m2 = (a & b).signMask;
« no previous file with comments | « tests/lib/typed_data/int32x4_shuffle_test.dart ('k') | tests/lib/typed_data/uint32x4_arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698