blob: 3898f15513be07d29a8f3f20b6babcd82fb02762 [file] [log] [blame]
/*
* Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion final int w
* Extracts 32-bit mask from w lane.
* @description Checks that the correct value is returned.
* @author msyabro
*/
import "dart:typed_data";
import "../../../Utils/expect.dart";
check(w) {
var obj = new Int32x4(0 ,0, 0, w);
Expect.equals(w, obj.w);
}
main() {
check(0);
check(1);
check(256);
check(2147483647);
check(-2147483647);
}