mirror of https://github.com/tc39/test262.git
21 lines
589 B
JavaScript
21 lines
589 B
JavaScript
// Copyright (C) 2016 ecmascript_simd authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: simd-not
|
|
description: Tests the unary not operation.
|
|
includes: [simdUtilities.js]
|
|
---*/
|
|
|
|
simdTypes.filter(isIntType).forEach(function(type) {
|
|
testSimdFunction(type.name + ' not', function() {
|
|
testUnaryOp(type, 'not', function(a) { return ~a; });
|
|
});
|
|
});
|
|
|
|
simdTypes.filter(isBoolType).forEach(function(type) {
|
|
testSimdFunction(type.name + ' not', function() {
|
|
testUnaryOp(type, 'not', function(a) { return !a; });
|
|
});
|
|
});
|