testFail.js 636 B

12345678910111213141516
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function module0(stdlib) {
  6. "use asm"
  7. var u16 = stdlib.SIMD.Uint8x16;
  8. var u16check = u16.check;
  9. function foo() {
  10. var abc = u16(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
  11. return u16check(abc);
  12. }
  13. return { foo:foo }
  14. }
  15. var c = module0(this);