-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously xplat LowerCall args were limited to REG_INT_ARG... Adding XMM* support and a test case to make sure we don't break. This PR also improves n-body xplat perf 3x. Disabling couple of additional wasm tests on xplat with a note.
- Loading branch information
Showing
5 changed files
with
203 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
function AsmModuleDouble() { | ||
"use asm"; | ||
|
||
function test0(x) { x = +x; return +test0sub(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 10.5); } | ||
function test0sub(a,b,c,d,e,f,g,h,j,i,k) { | ||
a = +a; b = +b; | ||
c = +c; d = +d; | ||
e = +e; f = +f; | ||
g = +g; h = +h; | ||
j = +j; i = +i; | ||
k = +k; return +(a); } | ||
|
||
function test1(x) { x = +x; return +test1sub(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 10.5); } | ||
function test1sub(a,b,c,d,e,f,g,h,j,i,k) { | ||
a = +a; b = +b; | ||
c = +c; d = +d; | ||
e = +e; f = +f; | ||
g = +g; h = +h; | ||
j = +j; i = +i; | ||
k = +k; return +(f); } | ||
|
||
function test2(x) { x = +x; return +test2sub(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 10.5); } | ||
function test2sub(a,b,c,d,e,f,g,h,j,i,k) { | ||
a = +a; b = +b; | ||
c = +c; d = +d; | ||
e = +e; f = +f; | ||
g = +g; h = +h; | ||
j = +j; i = +i; | ||
k = +k; return +(g); } | ||
|
||
function test3(x) { x = +x; return +test3sub(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 10.5); } | ||
function test3sub(a,b,c,d,e,f,g,h,j,i,k) { | ||
a = +a; b = +b; | ||
c = +c; d = +d; | ||
e = +e; f = +f; | ||
g = +g; h = +h; | ||
j = +j; i = +i; | ||
k = +k; return +(h); } | ||
|
||
function test4(x) { x = +x; return +test4sub(1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 0.5, 10.5); } | ||
function test4sub(a,b,c,d,e,f,g,h,j,i,k) { | ||
a = +a; b = +b; | ||
c = +c; d = +d; | ||
e = +e; f = +f; | ||
g = +g; h = +h; | ||
j = +j; i = +i; | ||
k = +k; return +(k); } | ||
|
||
return { test0: test0, test1: test1, test2: test2, test3: test3, test4: test4 }; | ||
} | ||
|
||
var asmModuleDouble = AsmModuleDouble(); | ||
if (asmModuleDouble.test0(2, 3, 4) != 1.5) throw ('a - 1st arg. storage has failed.'); | ||
if (asmModuleDouble.test1(2, 3, 4) != 6.5) throw ('f - 6th arg. storage has failed.'); | ||
if (asmModuleDouble.test2(2, 3, 4) != 7.5) throw ('g - 7th arg. storage has failed.'); | ||
if (asmModuleDouble.test3(2, 3, 4) != 8.5) throw ('h - 8th arg. storage has failed.'); | ||
if (asmModuleDouble.test4(2, 3, 4) != 10.5) throw ('k - 11th arg. storage has failed.'); | ||
|
||
print("PASS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters