blob: 9b552d3bfe4690736eb7da7f3e0554cd68162322 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.LoadScriptFile("..\\UnitTestFramework\\SimdJsHelpers.js");
function func1()
{
var x, y;
var i =0;
var j = 0;
for (i = 0; i < 3; i++)
{
for (j = 0; j < 3; j++)
{
y = SIMD.Int32x4(2, 2, 2, 2);
}
}
return y;
}
var z;
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
func1();
x = func1();
equalSimd([2,2,2,2], x, SIMD.Int32x4, "func1");
print("PASS");