summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01
diff options
context:
space:
mode:
authorBengu Li <beli@microsoft.com>2015-06-09 12:45:27 -0700
committerBengu Li <beli@microsoft.com>2015-06-09 12:45:27 -0700
commit002d6d8fdfc3c5f7896a0ad0c0a5c9a41c25c440 (patch)
tree72e7f8c11fa75aac9ef5156387e3730ced44d11e /tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01
parent4b21be40517f1348d7f223726decb0f719d09a4b (diff)
downloadcoreclr-002d6d8fdfc3c5f7896a0ad0c0a5c9a41c25c440.tar.gz
coreclr-002d6d8fdfc3c5f7896a0ad0c0a5c9a41c25c440.tar.bz2
coreclr-002d6d8fdfc3c5f7896a0ad0c0a5c9a41c25c440.zip
Add all remaining JIT/Regression test cases for JIT
Add all remaining JIT/Regression test cases for JIT. All under CLR-x86-JIT. Related proj, config files added. AllTestProjects.sln update delayed for a batch adding. Passed build, buildtest, runtest.
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01')
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.cs25
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.cs104
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/b07211.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/byteshift.cs37
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/b07900.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/rpPasses.cs49
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/b08020.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/bbHndIndex.cs36
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.cs35
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/b16386.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/gtnop.cs16
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/packages.config8
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/app.config27
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/b16386.csproj19
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/cs_template.proj42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/gtIsValid64RsltMul.cs42
-rw-r--r--tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/packages.config8
40 files changed, 1112 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.cs
new file mode 100644
index 0000000000..1f4851cef8
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.cs
@@ -0,0 +1,25 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+struct AA
+{
+ static void f()
+ {
+ bool flag = false;
+ if (flag)
+ {
+ while (flag)
+ {
+ while (flag) { }
+ }
+ }
+ do { } while (flag);
+ }
+ static int Main()
+ {
+ f();
+ return 100;
+ }
+}
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/b00735.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b00735/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.cs
new file mode 100644
index 0000000000..280a7ae4cc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.cs
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+using System.Collections;
+
+public enum TestEnum
+{
+ red = 1,
+ green = 2,
+ blue = 4,
+}
+
+public class AA
+{
+ public bool[, ,] m_abField1;
+ public static Array Static1()
+ {
+ byte local1 = (new byte[12u, 37u, 25u, 121u][, , ,])[46, 37, 101, 94][52, 25, 19
+ , Math.Max(121, 1)];
+ local1 = (new byte[26u, 74u, 72u, 42u])[new int[] { 96 }[60], (local1 ^ local1)
+ , (0), Math.Min(123, 31)];
+ return (new Array[29u, 70u, 67u][, , ,])[16, 69, 1][75, Math.Sign(30), Math.Sign
+ (7), Math.Max(71, 35)];
+ }
+ public static byte[,] Static2()
+ {
+ AA.Static1();
+ while ((new bool[2u, 2u, 54u, 97u][,])[32, 9, 82, 40][new int[] { }[31],
+ Math.Sign(7)])
+ {
+ do
+ {
+ sbyte local2 = ((sbyte)((new int[29u, 115u])[6, 114]));
+ local2 = (new sbyte[122u, 103u])[(new int[52u, 120u])[18, 122], Math.Sign(
+ 109)];
+ do
+ {
+ break;
+ }
+#pragma warning disable 0162
+ while ((new uint[] { 47u, 48u, 35u, 86u }[72] != (new uint[95u, 92u, 5u])[15,
+ (0), 101]));
+#pragma warning restore 0162
+ }
+ while (((new AA[106u, 122u])[114, 86] != (new object[101u, 59u])[40, (0)]));
+ AA.Static1();
+ if (((bool)(new object[] { null }[65])))
+ AA.Static1();
+ for ((new sbyte[101u, 64u][])[122, 88][75] += Math.Min((new sbyte[91u, 27u, 86u
+ ])[48, 111, 62], (new sbyte[57u, 83u])[122, 57]); (new float[]{93.0f, 67.0f
+ , 46.0f, 61.0f, 70.0f }[34] == ((float)(68.0))); (new ulong[93u, 100u, 123u
+ , 105u][])[110, 106, 35, 16][((int)(47.0f))] *= Math.Max((new ulong[115u, 35u
+ , 113u, 82u])[1, 91, 62, 42], (new ulong[32u])[108]))
+ {
+ try
+ {
+ }
+ catch (Exception)
+ {
+ }
+ }
+ }
+ try
+ {
+ }
+ catch (InvalidOperationException)
+ {
+ }
+ do
+ {
+ }
+ while (((bool)((new object[74u, 111u])[97, 72])));
+ return (new byte[100u, 17u, 75u, 30u][][,])[11, 65, 105, 83][Math.Sign(66)];
+ }
+}
+
+class App
+{
+ static int Main()
+ {
+ try
+ {
+ Console.WriteLine("Testing AA::Static1");
+ AA.Static1();
+ }
+ catch (Exception x)
+ {
+ Console.WriteLine("Exception handled: " + x.ToString());
+ }
+ try
+ {
+ Console.WriteLine("Testing AA::Static2");
+ AA.Static2();
+ }
+ catch (Exception x)
+ {
+ Console.WriteLine("Exception handled: " + x.ToString());
+ }
+ Console.WriteLine("Passed.");
+ return 100;
+ }
+} \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/b02345.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b02345/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/b07211.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/b07211.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/b07211.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/byteshift.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/byteshift.cs
new file mode 100644
index 0000000000..f30a7b54a0
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/byteshift.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+namespace Test
+{
+ public class ShiftTest
+ {
+ public byte data = 0xF0;
+ }
+
+ public class Test
+ {
+ public static int Main()
+ {
+ Console.WriteLine("Both results should be 15");
+ // This works
+ byte dataByte = 0xF0;
+ dataByte >>= 4; // becomes 0x0F
+ Console.WriteLine(dataByte);
+
+ // This gives wrong result
+ ShiftTest shiftTest = new ShiftTest();
+ shiftTest.data >>= 4; // becomes 0xFF
+ Console.WriteLine(shiftTest.data);
+
+ if (shiftTest.data != 0xF)
+ return 1;
+ else
+ return 100;
+ }
+ }
+
+}
+
+
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07211/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/b07900.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/b07900.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/b07900.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/rpPasses.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/rpPasses.cs
new file mode 100644
index 0000000000..048f1a122c
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07900/rpPasses.cs
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+public struct AA
+{
+ public static byte[, ,][] f()
+ {
+ for ((new long[58u, 97u, 118u])[122, 61, Math.Sign(41)] = ((long)(Math.Max(82.0
+ , 69.0))); ((bool)((new object[42u])[54])); (new byte[33u, 119u])[60, (new
+ int[46u, 48u])[55, 81]] = (new byte[8u][, ,])[82][48, (new int[126u, 109u, 120u
+ , 12u])[48, 49, 33, 16], Math.Min(68, 43)])
+ {
+ for (new byte[] { }[64] /= (new byte[44u, 81u, 16u, 52u, 20u])[(new int[58u, 45u
+ ])[125, 36], Math.Max(22, 90), 8, ((int)(69.0)), Math.Sign(22)]; new bool[]{
+ false }[(new int[55u])[71]]; new int[] { 18, 117, 73 }[((int)(93.0f))] /= new
+ int[][] { new int[] { 6 }, new int[] { 103, 28, 52, 112, 31 } }[85][(new int[76u,
+ 48u, 105u])[86, 24, 7]])
+ {
+ }
+ try
+ {
+ }
+ catch (IndexOutOfRangeException)
+ {
+ }
+ }
+ return ((new byte[40u, 107u, 4u][, ,][])[107, 69, 93] = new byte[][, ,][] { }[70]
+ );
+ }
+}
+
+class App
+{
+ static int Main()
+ {
+ try
+ {
+ AA.f();
+ }
+ catch (Exception x)
+ {
+ Console.WriteLine("Exception handled: " + x.ToString());
+ }
+ Console.WriteLine("Passed.");
+ return 100;
+ }
+} \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/b08020.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/b08020.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/b08020.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/bbHndIndex.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/bbHndIndex.cs
new file mode 100644
index 0000000000..efd1eb75fb
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/bbHndIndex.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+class AA
+{
+ static void f(ref Array param)
+ {
+ try
+ {
+
+ }
+ finally
+ {
+ for (int i = 0; i < 3; i++)
+ {
+ }
+#pragma warning disable 1718
+ while ((param != param))
+#pragma warning restore 1718
+ {
+ }
+ }
+ }
+
+ static int Main()
+ {
+ f(ref m_arr);
+ Console.WriteLine("Passed.");
+ return 100;
+ }
+
+ static Array m_arr;
+
+}
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b08020/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.cs
new file mode 100644
index 0000000000..f414fd59bb
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.cs
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+
+class test1
+{
+
+ public static double f1()
+ {
+ return 1.0;
+ }
+
+ public static void foo()
+ {
+ Console.Write(".");
+ }
+
+ public static int Main()
+ {
+ double c = 100.0;
+ double a = f1();
+ double b = f1();
+ int x = 0;
+ while (c > 0.0)
+ {
+ c = c * a;
+ c = c - b;
+ x++;
+ }
+ Console.WriteLine("\nx=" + x);
+ return x;
+ }
+} \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/b11762.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b11762/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/b16386.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/b16386.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/b16386.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/gtnop.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/gtnop.cs
new file mode 100644
index 0000000000..9dd06cde77
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/gtnop.cs
@@ -0,0 +1,16 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+public class gtnop
+{
+ public static int Main()
+ {
+ byte[] arr = new byte[1];
+ short i = 3;
+ try { arr[(byte)(20u) * i] = 0; }
+ catch (IndexOutOfRangeException) { return 100; }
+ return 1;
+ }
+}
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16386/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/app.config
new file mode 100644
index 0000000000..62803f5972
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/app.config
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration> \ No newline at end of file
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/b16386.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/b16386.csproj
new file mode 100644
index 0000000000..33b2928ebc
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/b16386.csproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ </PropertyGroup>
+ <Target Name="Build">
+ <ItemGroup>
+ <AllSourceFiles Include="$(MSBuildProjectDirectory)\*.cs" />
+ </ItemGroup>
+ <PropertyGroup>
+ <GenerateRunScript>false</GenerateRunScript>
+ </PropertyGroup>
+ <MSBuild Projects="cs_template.proj" Properties="AssemblyName1=%(AllSourceFiles.FileName);AllowUnsafeBlocks=True;IntermediateOutputPath=$(IntermediateOutputPath)\%(AllSourceFiles.FileName)\" />
+ </Target>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/cs_template.proj b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/cs_template.proj
new file mode 100644
index 0000000000..adc2f21e14
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/cs_template.proj
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <AssemblyName>$(AssemblyName1)</AssemblyName>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
+ </PropertyGroup>
+ <!-- Default configurations to help VS understand the configurations -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="$(AssemblyName1).cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/gtIsValid64RsltMul.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/gtIsValid64RsltMul.cs
new file mode 100644
index 0000000000..559ba60d4c
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/gtIsValid64RsltMul.cs
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+
+using System;
+public struct AA
+{
+ public static char[, , , ,][, ,] Static1(char param1, int param2, bool[,] param3,
+ sbyte[,][][, , ,][,][] param4, ref int param5, ref byte[,][, , ,] param6)
+ {
+ float local1 = 10.0f;
+ short local2 = ((short)(47.0f));
+ for (local1--; ((param2 * 117u) == ((long)(local2))); local2++) ;
+
+ return (new char[99u, 88u, 97u, 120u, 72u][, ,]);
+ }
+}
+
+public class App
+{
+ static int Main()
+ {
+ try
+ {
+ AA.Static1(
+ '\x69',
+ 92,
+ (new bool[49u, 76u]),
+ (new sbyte[24u, ((uint)(51))][][,,,][,][]),
+ ref App.m1,
+ ref App.m2);
+ }
+ catch (Exception x)
+ {
+ Console.WriteLine("Exception handled: " + x.ToString());
+ }
+ Console.WriteLine("Passed.");
+ return 100;
+ }
+ public static int m1;
+ public static byte[,][, , ,] m2;
+}
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/packages.config b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/packages.config
new file mode 100644
index 0000000000..8f8ccd47d6
--- /dev/null
+++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b16399/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="System.Console" version="4.0.0-beta-22405" />
+ <package id="System.Runtime" version="4.0.20-beta-22405" />
+ <package id="System.Runtime.Extensions" version="4.0.10-beta-22412" />
+ <package id="System.Threading" version="4.0.0-beta-22412" />
+ <package id="System.Threading.Thread" version="4.0.0-beta-22512" />
+</packages>