mirror of https://github.com/tc39/test262.git
21 lines
678 B
JavaScript
21 lines
678 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: constructor-properties
|
|
description: Test SIMD Logical operations.
|
|
includes: [simdUtilities.js]
|
|
---*/
|
|
|
|
simdTypes.filter(isLogical).forEach(function(type) {
|
|
testSimdFunction(type.name + ' and', function() {
|
|
testBinaryOp(type, 'and', function(a, b) { return a & b; });
|
|
});
|
|
testSimdFunction(type.name + ' or', function() {
|
|
testBinaryOp(type, 'or', function(a, b) { return a | b; });
|
|
});
|
|
testSimdFunction(type.name + ' xor', function() {
|
|
testBinaryOp(type, 'xor', function(a, b) { return a ^ b; });
|
|
});
|
|
});
|