testNeg1.js 788 B

1234567891011121314151617181920
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function asmModule(stdlib, imports) {
  6. "use asm";
  7. var b8 = stdlib.SIMD.Bool16x8;
  8. var b8extractLane = b8.extractLane;
  9. function testNeg()
  10. {
  11. var a = b8(1, 0, 1, 0, 1, 0, 1, 0);
  12. var result = 0.0;
  13. result = +(b8extractLane(a,0));
  14. return;
  15. }
  16. return {testNeg:testNeg};
  17. }
  18. var m = asmModule(this, {g1:SIMD.Bool16x8(1, 1, 1, 1, 1, 1, 1, 1)});