Add a test for dotnet/coreclr#9282
authorMichelle McDaniel <adiaaida@gmail.com>
Thu, 2 Feb 2017 21:59:10 +0000 (13:59 -0800)
committerMichelle McDaniel <adiaaida@gmail.com>
Thu, 2 Feb 2017 23:30:57 +0000 (15:30 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/454c9d7a7f03625f2891d082f8770e7523ce78f8

src/coreclr/tests/issues.targets
src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj [new file with mode: 0644]
src/coreclr/tests/testsFailingOutsideWindows.txt

index f7da8f3..211549d 100644 (file)
         <ExcludeList Include="$(XunitTestBinBase)\JIT\opt\perf\doublealign\Locals\*">
             <Issue>8418</Issue>
         </ExcludeList>
+        <ExcludeList Include="$(XunitTestBinBase)\JIT\Regression\JitBlue\DevDiv_377155\DevDiv_377155\*">
+            <Issue>9282</Issue>
+        </ExcludeList>
     </ItemGroup>
 
     <!-- The following are x86 failures -->
diff --git a/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il
new file mode 100644 (file)
index 0000000..4c1ab4a
--- /dev/null
@@ -0,0 +1,75 @@
+// ProcessName - 'ILGEN'
+.assembly extern mscorlib{}
+.assembly DevDiv_377155{}
+.class C extends [mscorlib]System.Object
+{
+   .method static float32 M() cil managed noinlining
+   {
+      .maxstack  65535
+      .locals init (float64, native unsigned int, native int, char, unsigned int64, bool)
+
+      ldloc.s 0x04
+      conv.ovf.u8.un
+      conv.ovf.u2.un
+      ldc.r8 float64(0x9eda41f595fa8ca8)
+      conv.r4
+      conv.u8
+      pop
+      ldc.i4 0x1de50978
+      ldloc 0x0004
+      ldloc.s 0x04
+      or
+      ldc.i8 0x2d9c5178675b7af5
+      ldloc 0x0004
+      ldloc 0x0004
+      mul
+      ldloc.s 0x04
+      conv.ovf.u2.un
+      shr.un
+      not
+      not
+      or
+      cgt.un
+      ldc.i4 0xbdc937ef
+      ldloc.s 0x05
+      add.ovf.un
+      clt.un
+      shl
+      not
+      neg
+      shr.un
+      conv.r4
+      ckfinite
+      ldloc.s 0x00
+      clt.un
+      nop
+      brtrue IL_0052
+      nop
+IL_0052:
+      ldloc 0x0000
+      ret
+   }
+
+   .method static int32 Main() cil managed
+   {
+       .entrypoint
+
+       .try
+       {
+           call float32 C::M()
+           pop
+           leave.s done
+       }
+       catch [mscorlib]System.Exception
+       {
+           pop
+           leave.s done
+       }
+
+   done:
+       ldc.i4 100
+       ret
+   }
+
+}
+// Dumped 1
diff --git a/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj
new file mode 100644 (file)
index 0000000..32d6094
--- /dev/null
@@ -0,0 +1,51 @@
+<?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>$(MSBuildProjectName)</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>
+    <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>
+  <PropertyGroup>
+    <DebugType>None</DebugType>
+    <Optimize>True</Optimize>
+  </PropertyGroup>
+  <ItemGroup>
+    <Compile Include="DevDiv_377155.il" />
+  </ItemGroup>
+  <PropertyGroup>
+    <CLRTestBatchPreCommands><![CDATA[
+$(CLRTestBatchPreCommands)
+set COMPlus_JitStressRegs=0x200
+]]></CLRTestBatchPreCommands>
+  <BashCLRTestPreCommands><![CDATA[
+$(BashCLRTestPreCommands)
+export COMPlus_JitStressRegs=0x200
+]]></BashCLRTestPreCommands>
+  </PropertyGroup>
+  <ItemGroup>
+    <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+  </ItemGroup>
+  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+  <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+  </PropertyGroup> 
+</Project>
index de94b28..901172b 100644 (file)
@@ -79,3 +79,4 @@ Loader/classloader/TypeGeneratorTests/TypeGeneratorTest681/Generated681/Generate
 Loader/classloader/TypeGeneratorTests/TypeGeneratorTest682/Generated682/Generated682.sh
 Loader/classloader/TypeGeneratorTests/TypeGeneratorTest683/Generated683/Generated683.sh
 JIT/opt/perf/doublealign/Locals/Locals.sh
+JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155/DevDiv_377155.sh