mirror of https://github.com/tc39/test262.git
15 lines
416 B
JavaScript
15 lines
416 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-neg
|
|
description: Tests the unary '-' operation.
|
|
includes: [simdUtilities.js]
|
|
---*/
|
|
|
|
simdTypes.filter(isNumerical).forEach(function(type) {
|
|
testSimdFunction(type.name + ' neg', function() {
|
|
testUnaryOp(type, 'neg', function(a) { return -a; });
|
|
});
|
|
});
|