test262/test/built-ins/Simd/not.js

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; });
});
});