diff --git a/docs/workflow/building/coreclr/wasi-r2r.md b/docs/workflow/building/coreclr/wasi-r2r.md
index d1dedfe6d4c178..491a3b4812e6dc 100644
--- a/docs/workflow/building/coreclr/wasi-r2r.md
+++ b/docs/workflow/building/coreclr/wasi-r2r.md
@@ -40,6 +40,9 @@ of the number of function definitions; table slots may contain duplicate or non-
references.
Non-composite R2R and `WasmSingleFileBundle` are not supported by this path.
+Relaxed SIMD is a default WASI instruction set. Hosts without relaxed SIMD fail to load the composite; publish with
+`-p:PublishReadyToRunInstructionSet=-relaxed-simd` for them.
+
## Runtime tests
The WASI runtime-test pipeline keeps separate interpreter and `R2R_CG2` jobs. The R2R job uses
diff --git a/eng/pipelines/coreclr/hardware-intrinsics-wasm.yml b/eng/pipelines/coreclr/hardware-intrinsics-wasm.yml
index ef75d2e19f9bcb..21042c818c3fd9 100644
--- a/eng/pipelines/coreclr/hardware-intrinsics-wasm.yml
+++ b/eng/pipelines/coreclr/hardware-intrinsics-wasm.yml
@@ -10,7 +10,10 @@ pr:
include:
- eng/pipelines/coreclr/hardware-intrinsics-wasm.yml
- eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml
+ - src/coreclr/crossgen-corelib.proj
- src/coreclr/jit/*wasm*
+ - src/tests/Directory.Build.targets
+ - src/tests/build.proj
- src/tests/JIT/HardwareIntrinsics/Wasm/**
variables:
@@ -28,4 +31,12 @@ extends:
parameters:
platforms:
- browser_wasm
- testBuildArgs: '/p:WasmEnableRelaxedSimd=true -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_r.csproj -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_ro.csproj'
+ extraBuildArgs: /p:PublishReadyToRunInstructionSet=relaxed-simd
+ testBuildArgs: '/p:PublishReadyToRunInstructionSet=relaxed-simd -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_r.csproj -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_ro.csproj'
+ - template: /eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml
+ parameters:
+ platforms:
+ - wasi_wasm
+ # Compiles CoreLib into each test composite, so the tests can use relaxed SIMD.
+ extraHelixArguments: /p:WholeProgramCompositeBuildMode=true
+ testBuildArgs: '/p:PublishReadyToRunInstructionSet=relaxed-simd -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_r.csproj -test:JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_ro.csproj'
diff --git a/eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml b/eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml
index 0fb12ab24e3fa0..5ff4d8fdca3b2d 100644
--- a/eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml
+++ b/eng/pipelines/coreclr/templates/jit-hardware-intrinsics-wasm.yml
@@ -3,6 +3,12 @@ parameters:
type: object
- name: testBuildArgs
type: string
+ - name: extraHelixArguments
+ type: string
+ default: ''
+ - name: extraBuildArgs
+ type: string
+ default: ''
jobs:
# Build CoreCLR + libraries for wasm, build the wasm HardwareIntrinsics tests,
@@ -22,7 +28,7 @@ jobs:
jobParameters:
testGroup: outerloop
nameSuffix: CoreCLR
- buildArgs: -s clr+libs+packs -c $(_BuildConfig) /p:TestAssemblies=false
+ buildArgs: -s clr+libs+packs -c $(_BuildConfig) /p:TestAssemblies=false ${{ parameters.extraBuildArgs }}
timeoutInMinutes: 180
postBuildSteps:
- template: /eng/pipelines/common/templates/runtimes/build-runtime-tests-and-send-to-helix.yml
@@ -32,6 +38,7 @@ jobs:
testRunNamePrefixSuffix: CoreCLR_R2R
# The CoreCLR interpreter does not implement Wasm SIMD; ReadyToRun code does.
readyToRun: true
+ extraHelixArguments: ${{ parameters.extraHelixArguments }}
extraVariablesTemplates:
- template: /eng/pipelines/common/templates/runtimes/test-variables.yml
parameters:
diff --git a/src/coreclr/crossgen-corelib.proj b/src/coreclr/crossgen-corelib.proj
index 9847370d584963..6cbe4f272f4a8a 100644
--- a/src/coreclr/crossgen-corelib.proj
+++ b/src/coreclr/crossgen-corelib.proj
@@ -202,6 +202,9 @@
<_CoreLibCrossgen2ExtraArgs Include="--opt-cross-module:*"
Condition="'$(PublishReadyToRunContainerFormat)' == 'wasm'" />
+
+ <_CoreLibCrossgen2ExtraArgs Include="--instruction-set:$(PublishReadyToRunInstructionSet)"
+ Condition="'$(PublishReadyToRunInstructionSet)' != ''" />
<_CoreLibCrossgen2ExtraArgs Include="@(WasmCoreClrFrameworkPInvokeModule->WithMetadataValue('Browser', 'true')->WithMetadataValue('PrebuiltR2RDirect', 'true')->'--directpinvoke:%(Identity)')"
Condition="'$(PublishReadyToRunContainerFormat)' == 'wasm' and '$(TargetOS)' == 'browser'" />
<_CoreLibCrossgen2ExtraArgs Include="@(WasmCoreClrFrameworkPInvokeModule->WithMetadataValue('Wasi', 'true')->WithMetadataValue('PrebuiltR2RDirect', 'true')->'--directpinvoke:%(Identity)')"
diff --git a/src/coreclr/hosts/corerun/wasi_r2r_probe.hpp b/src/coreclr/hosts/corerun/wasi_r2r_probe.hpp
index 234400c741e29a..15d1236a86e29a 100644
--- a/src/coreclr/hosts/corerun/wasi_r2r_probe.hpp
+++ b/src/coreclr/hosts/corerun/wasi_r2r_probe.hpp
@@ -6,7 +6,7 @@
// calls out to it to obtain the composite R2R webcil image and the per-assembly stubs.
//
// The in-tree WASI R2R composer populates the image when publishing. The host must be linked with the
-// flags that supply a composite's imports -- see WasiEnableCompositeR2R in WasiApp.CoreCLR.targets.
+// flags that supply a composite's imports (see WasiApp.CoreCLR.targets).
// Without them this probe compiles but can never be satisfied.
//
// Requires corerun.hpp to be included first (for pal::try_map_file_readonly). Include exactly once per
diff --git a/src/coreclr/jit/hwintrinsic.cpp b/src/coreclr/jit/hwintrinsic.cpp
index 431b642f582406..73d25fea40248b 100644
--- a/src/coreclr/jit/hwintrinsic.cpp
+++ b/src/coreclr/jit/hwintrinsic.cpp
@@ -1287,6 +1287,10 @@ NamedIntrinsic HWIntrinsicInfo::resolveId(Compiler* comp,
if (isIsaSupported && comp->compSupportsHWIntrinsic(isa) &&
(vectorByteLength <= comp->getPreferredVectorByteLength()))
{
+#ifdef TARGET_WASM
+ // Wasm has no runtime ISA detection, so the compile-time ISA support is exact.
+ return NI_IsSupported_True;
+#else
if (!comp->IsTargetAbi(CORINFO_NATIVEAOT_ABI) || comp->compExactlyDependsOn(isa))
{
return NI_IsSupported_True;
@@ -1296,6 +1300,7 @@ NamedIntrinsic HWIntrinsicInfo::resolveId(Compiler* comp,
assert(comp->IsTargetAbi(CORINFO_NATIVEAOT_ABI));
return NI_IsSupported_Dynamic;
}
+#endif
}
return NI_IsSupported_False;
diff --git a/src/coreclr/tools/Common/Compiler/InstructionSetSupport.cs b/src/coreclr/tools/Common/Compiler/InstructionSetSupport.cs
index 6f366a3fbe5fb1..d163a0853079a9 100644
--- a/src/coreclr/tools/Common/Compiler/InstructionSetSupport.cs
+++ b/src/coreclr/tools/Common/Compiler/InstructionSetSupport.cs
@@ -100,8 +100,8 @@ public static string GetHardwareIntrinsicId(TargetArchitecture architecture, Typ
}
else if (architecture is TargetArchitecture.Wasm32)
{
- // TODO-WASM: return the correct intrinsic id once xplat intrinsics are implemented.
- return "";
+ if (potentialType.Namespace != "System.Runtime.Intrinsics.Wasm"u8)
+ return "";
}
else
{
diff --git a/src/coreclr/tools/Common/InstructionSetHelpers.cs b/src/coreclr/tools/Common/InstructionSetHelpers.cs
index 9933e6a3b53e63..ad2a7e0a3a7db4 100644
--- a/src/coreclr/tools/Common/InstructionSetHelpers.cs
+++ b/src/coreclr/tools/Common/InstructionSetHelpers.cs
@@ -93,6 +93,11 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru
{
instructionSetSupportBuilder.AddSupportedInstructionSet("base");
instructionSetSupportBuilder.AddSupportedInstructionSet("simd128");
+
+ if (targetOS == TargetOS.Wasi)
+ {
+ instructionSetSupportBuilder.AddSupportedInstructionSet("relaxed-simd");
+ }
}
bool throttleAvx512 = false;
diff --git a/src/coreclr/vm/codeman.cpp b/src/coreclr/vm/codeman.cpp
index ddf1a19fa88bc8..d6ce37445cca56 100644
--- a/src/coreclr/vm/codeman.cpp
+++ b/src/coreclr/vm/codeman.cpp
@@ -1457,15 +1457,6 @@ extern "C" DWORD64 __stdcall GetDataCacheZeroIDReg();
extern "C" uint64_t GetSveLengthFromOS();
#endif
-#ifdef TARGET_WASM
-static bool s_wasmRelaxedSimdSupported;
-
-extern "C" void coreclr_wasm_set_relaxed_simd_supported()
-{
- s_wasmRelaxedSimdSupported = true;
-}
-#endif
-
void EEJitManager::SetCpuInfo()
{
LIMITED_METHOD_CONTRACT;
@@ -1510,10 +1501,6 @@ void EEJitManager::SetCpuInfo()
#if defined(TARGET_WASM)
CPUCompileFlags.Set(InstructionSet_WasmBase);
CPUCompileFlags.Set(InstructionSet_PackedSimd);
- if (s_wasmRelaxedSimdSupported)
- {
- CPUCompileFlags.Set(InstructionSet_RelaxedSimd);
- }
#endif
#if defined(TARGET_X86) || defined(TARGET_AMD64)
diff --git a/src/coreclr/vm/codeman.h b/src/coreclr/vm/codeman.h
index c3ddb0d2a07c83..fd3d6e89aace69 100644
--- a/src/coreclr/vm/codeman.h
+++ b/src/coreclr/vm/codeman.h
@@ -2341,6 +2341,15 @@ class EEJitManager final : public EECodeGenManager
return m_CPUCompileFlags;
}
+#if defined(TARGET_WASM) && !defined(DACCESS_COMPILE)
+ // Wasm cannot detect instruction sets at run time; CoreLib's ReadyToRun image defines them.
+ void SetInstructionSetFromCoreLib(CORINFO_InstructionSet instructionSet)
+ {
+ LIMITED_METHOD_CONTRACT;
+ m_CPUCompileFlags.Set(instructionSet);
+ }
+#endif
+
#if defined(TARGET_ARM64)
inline bool UseScalableVectorT()
{
diff --git a/src/coreclr/vm/jitinterface.cpp b/src/coreclr/vm/jitinterface.cpp
index 8835ea1dd1d34a..3fe6020b75c834 100644
--- a/src/coreclr/vm/jitinterface.cpp
+++ b/src/coreclr/vm/jitinterface.cpp
@@ -14637,6 +14637,15 @@ BOOL LoadDynamicInfoEntry(Module *currentModule,
DWORD instructionSetEncoded = CorSigUncompressData(pBlob);
bool mustInstructionSetBeSupported = !!(instructionSetEncoded & 1);
ReadyToRunInstructionSet instructionSet = (ReadyToRunInstructionSet)(instructionSetEncoded >> 1);
+#ifdef TARGET_WASM
+ // Other images must match the instruction sets CoreLib was compiled for.
+ if (mustInstructionSetBeSupported && currentModule->IsSystem())
+ {
+ ExecutionManager::GetEEJitManager()->SetInstructionSetFromCoreLib(InstructionSetFromR2RInstructionSet(instructionSet));
+ corjitFlags = ExecutionManager::GetEEJitManager()->GetCPUCompileFlags();
+ continue;
+ }
+#endif // TARGET_WASM
if (IsInstructionSetSupported(corjitFlags, instructionSet) != mustInstructionSetBeSupported)
{
return FALSE;
diff --git a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
index a6bb0b2caaf614..ec51341b42de3b 100644
--- a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
+++ b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
@@ -15,11 +15,10 @@
true
true
true
- true
- true
+ true
false
- true
+ true
false
true
false
diff --git a/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj b/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj
index 264b8039125d7a..d788d52bdc9bba 100644
--- a/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj
+++ b/src/libraries/System.Runtime.Intrinsics/tests/System.Runtime.Intrinsics.Tests.csproj
@@ -4,7 +4,7 @@
$(NoWarn),1718,SYSLIB0013
true
true
- $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser
+ $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser;$(NetCoreAppCurrent)-wasi
true
false
diff --git a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs
index 1d8030ff35ab77..ac74ffffeb0891 100644
--- a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs
+++ b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs
@@ -13,7 +13,7 @@
namespace System.Runtime.Intrinsics.Wasm.Tests
{
- [PlatformSpecific(TestPlatforms.Browser)]
+ [PlatformSpecific(TestPlatforms.Browser | TestPlatforms.Wasi)]
[ConditionalClass(typeof(PackedSimdTests), nameof(IsSupported))]
public sealed class PackedSimdTests
{
diff --git a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/RelaxedSimdTests.cs b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/RelaxedSimdTests.cs
index 39468eaa7452ea..533aad2bc7e986 100644
--- a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/RelaxedSimdTests.cs
+++ b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/RelaxedSimdTests.cs
@@ -8,7 +8,7 @@
namespace System.Runtime.Intrinsics.Wasm.Tests
{
- [PlatformSpecific(TestPlatforms.Browser)]
+ [PlatformSpecific(TestPlatforms.Browser | TestPlatforms.Wasi)]
public sealed class RelaxedSimdTests
{
public static bool IsNotSupported => !RelaxedSimd.IsSupported;
diff --git a/src/mono/browser/build/BrowserWasmApp.CoreCLR.targets b/src/mono/browser/build/BrowserWasmApp.CoreCLR.targets
index 2bbd521e85cbf1..80f6c2ee1a79af 100644
--- a/src/mono/browser/build/BrowserWasmApp.CoreCLR.targets
+++ b/src/mono/browser/build/BrowserWasmApp.CoreCLR.targets
@@ -74,12 +74,6 @@
<_ExeExt Condition="$([MSBuild]::IsOSPlatform('windows'))">.exe
-
-
-
-
false
@@ -93,8 +92,6 @@
Text="PublishReadyToRunContainerFormat '$(PublishReadyToRunContainerFormat)' is not supported for CoreCLR wasi-wasm; only 'wasm' is supported." />
-
<_WasiRelinkOutput>$(_WasiRelinkObjDir)corerun
<_WasiPublishedHost>$(WasmAppDir)managed\corerun
-
- false
@@ -450,10 +443,10 @@
- <_WasiRelinkLinkFlags Include="-Wl,--table-base=$(WasiCompositeR2RTableBase)" Condition="'$(WasiEnableCompositeR2R)' == 'true'" />
- <_WasiRelinkLinkFlags Include="-Wl,--export-table" Condition="'$(WasiEnableCompositeR2R)' == 'true'" />
- <_WasiRelinkLinkFlags Include="-Wl,--export=__stack_pointer" Condition="'$(WasiEnableCompositeR2R)' == 'true'" />
- <_WasiRelinkLinkFlags Include="-Wl,--export=__coreclr_wasm_rtlrestorecontext_tag" Condition="'$(WasiEnableCompositeR2R)' == 'true'" />
+ <_WasiRelinkLinkFlags Include="-Wl,--table-base=$(WasiCompositeR2RTableBase)" Condition="'$(PublishReadyToRun)' == 'true'" />
+ <_WasiRelinkLinkFlags Include="-Wl,--export-table" Condition="'$(PublishReadyToRun)' == 'true'" />
+ <_WasiRelinkLinkFlags Include="-Wl,--export=__stack_pointer" Condition="'$(PublishReadyToRun)' == 'true'" />
+ <_WasiRelinkLinkFlags Include="-Wl,--export=__coreclr_wasm_rtlrestorecontext_tag" Condition="'$(PublishReadyToRun)' == 'true'" />
<_WasiRelinkLinkFlags Include="-fwasm-exceptions" />
<_WasiRelinkLinkFlags Include="-mllvm" />
<_WasiRelinkLinkFlags Include="-wasm-use-legacy-eh=false" />
diff --git a/src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs b/src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs
index ee56239dd1cf57..dd74400fdd2e5d 100644
--- a/src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs
+++ b/src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs
@@ -74,7 +74,7 @@ public async Task PublishRelaxedSimdCoreClr(bool relaxedSimd)
{
Configuration config = Configuration.Debug;
string relaxedSimdValue = relaxedSimd.ToString().ToLowerInvariant();
- string extraProperties = $"{relaxedSimdValue}";
+ string extraProperties = $"{relaxedSimdValue}true";
ProjectInfo info = CopyTestAsset(
config,
aot: false,
@@ -83,7 +83,7 @@ public async Task PublishRelaxedSimdCoreClr(bool relaxedSimd)
extraProperties: extraProperties);
UpdateFile(
Path.Combine("Common", "Program.cs"),
- GetCoreClrRelaxedSimdProgramText(relaxedSimdValue));
+ s_coreClrRelaxedSimdProgramText);
ReplaceMainJsWithMinimalRunMain();
PublishProject(info, config, isNativeBuild: relaxedSimd);
@@ -92,25 +92,52 @@ public async Task PublishRelaxedSimdCoreClr(bool relaxedSimd)
config,
TestScenario: "DotnetRun",
ExpectedExitCode: 42));
- string expectedOutput = $"RelaxedSimd config: {(relaxedSimd ? "true" : "")}";
- Assert.Contains(result.TestOutput, message => message.Contains(expectedOutput));
+ Assert.Contains(result.TestOutput, m => m.Contains($"RelaxedSimd.IsSupported: {relaxedSimd}"));
+ if (relaxedSimd)
+ {
+ Assert.Contains(result.TestOutput, m => m.Contains("ConvertToInt32Native: <1, -2, 3, -4>"));
+ Assert.Contains(result.TestOutput, m => m.Contains("MultiplyAddEstimate: <7, 7, 7, 7>"));
+ }
+ else
+ {
+ Assert.Contains(result.TestOutput, m => m.Contains("ConvertToInt32Native: PlatformNotSupportedException"));
+ }
}
- private static string GetCoreClrRelaxedSimdProgramText(string expectedConfigValue) => $$"""
+ private static string s_coreClrRelaxedSimdProgramText = """
using System;
+ using System.Runtime.CompilerServices;
+ using System.Runtime.Intrinsics;
+ using System.Runtime.Intrinsics.Wasm;
public class TestClass
{
public static int Main()
{
- string configuredValue = AppContext.GetData(
- "System.Runtime.Intrinsics.Wasm.RelaxedSimd.IsSupported") as string;
- Console.WriteLine($"TestOutput -> RelaxedSimd config: {configuredValue ?? ""}");
+ Console.WriteLine($"TestOutput -> RelaxedSimd.IsSupported: {RelaxedSimd.IsSupported}");
+ try
+ {
+ Console.WriteLine($"TestOutput -> ConvertToInt32Native: {ConvertToInt32Native(Vector128.Create(1.75f, -2.25f, 3.0f, -4.99f))}");
+ }
+ catch (PlatformNotSupportedException)
+ {
+ Console.WriteLine("TestOutput -> ConvertToInt32Native: PlatformNotSupportedException");
+ }
+
+ if (RelaxedSimd.IsSupported)
+ {
+ Console.WriteLine($"TestOutput -> MultiplyAddEstimate: {MultiplyAddEstimate(Vector128.Create(2f), Vector128.Create(3f), Vector128.Create(1f))}");
+ }
- return configuredValue == {{(expectedConfigValue == "true" ? "\"true\"" : "null")}}
- ? 42
- : 1;
+ return 42;
}
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ private static Vector128 ConvertToInt32Native(Vector128 value) => RelaxedSimd.ConvertToInt32Native(value);
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ private static Vector128 MultiplyAddEstimate(Vector128 left, Vector128 right, Vector128 addend) =>
+ RelaxedSimd.MultiplyAddEstimate(left, right, addend);
}
""";
diff --git a/src/native/corehost/browserhost/browserhost.cpp b/src/native/corehost/browserhost/browserhost.cpp
index b3aefce8d6e2ed..e687913cce4913 100644
--- a/src/native/corehost/browserhost/browserhost.cpp
+++ b/src/native/corehost/browserhost/browserhost.cpp
@@ -44,8 +44,6 @@ extern "C"
pal::hresult_t coreclr_set_error_writer(
coreclr_error_writer_callback_fn error_writer);
- void coreclr_wasm_set_relaxed_simd_supported();
-
#if !GEN_PINVOKE
const void* SystemResolveDllImport(const char* name);
const void* SystemJSResolveDllImport(const char* name);
@@ -112,16 +110,6 @@ extern "C" void* BrowserHost_CreateHostContract(void)
extern "C" int BrowserHost_InitializeDotnet(int propertiesCount, const char** propertyKeys, const char** propertyValues)
{
- for (int i = 0; i < propertiesCount; i++)
- {
- if ((strcmp(propertyKeys[i], "System.Runtime.Intrinsics.Wasm.RelaxedSimd.IsSupported") == 0) &&
- (strcmp(propertyValues[i], "true") == 0))
- {
- coreclr_wasm_set_relaxed_simd_supported();
- break;
- }
- }
-
coreclr_set_error_writer(log_error_info);
int retval = coreclr_initialize("/managed", "corehost", propertiesCount, propertyKeys, propertyValues, &CurrentClrInstance, &CurrentAppDomainId);
diff --git a/src/tasks/Crossgen2Tasks/Microsoft.NET.CrossGen.targets b/src/tasks/Crossgen2Tasks/Microsoft.NET.CrossGen.targets
index 683728e5523fd9..d25b30fbff4cdf 100644
--- a/src/tasks/Crossgen2Tasks/Microsoft.NET.CrossGen.targets
+++ b/src/tasks/Crossgen2Tasks/Microsoft.NET.CrossGen.targets
@@ -50,6 +50,9 @@ Copyright (c) .NET Foundation. All rights reserved.
$(PublishReadyToRunCrossgen2ExtraArgs);--strip-debug-info
$(PublishReadyToRunCrossgen2ExtraArgs);--strip-debug-info
$(PublishReadyToRunCrossgen2ExtraArgs);--strip-debug-info
+
+
+ $(PublishReadyToRunCrossgen2ExtraArgs);--instruction-set:$(PublishReadyToRunInstructionSet)
+
+
+
+ -relaxed-simd
+
+
+ $(CrossGen2TestExtraArguments) --instruction-set:$(PublishReadyToRunInstructionSet)
+
$(GroupBuildCmd) /p:ContinuousIntegrationBuild=true
$(GroupBuildCmd) "/p:BuildTestsOnHelix=true"
$(GroupBuildCmd) "/p:MonoForceInterpreter=true"
+ $(GroupBuildCmd) "/p:PublishReadyToRunInstructionSet=$(PublishReadyToRunInstructionSet)"
+ $(GroupBuildCmd) "/p:IlcInstructionSet=$(IlcInstructionSet)"
$(GroupBuildCmd) "/p:RunAOTCompilation=true"
$(GroupBuildCmd) "/p:DevTeamProvisioning=$(DevTeamProvisioning)"