From 7644dfe7a4cf1022cee0bd5429b9cf405743389c Mon Sep 17 00:00:00 2001 From: Michelle McDaniel Date: Thu, 2 Feb 2017 13:59:10 -0800 Subject: [PATCH] Add a test for dotnet/coreclr#9282 Commit migrated from https://github.com/dotnet/coreclr/commit/454c9d7a7f03625f2891d082f8770e7523ce78f8 --- src/coreclr/tests/issues.targets | 3 + .../JitBlue/DevDiv_377155/DevDiv_377155.il | 75 ++++++++++++++++++++++ .../JitBlue/DevDiv_377155/DevDiv_377155.ilproj | 51 +++++++++++++++ src/coreclr/tests/testsFailingOutsideWindows.txt | 1 + 4 files changed, 130 insertions(+) create mode 100644 src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il create mode 100644 src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj diff --git a/src/coreclr/tests/issues.targets b/src/coreclr/tests/issues.targets index f7da8f3..211549d 100644 --- a/src/coreclr/tests/issues.targets +++ b/src/coreclr/tests/issues.targets @@ -193,6 +193,9 @@ 8418 + + 9282 + 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 index 0000000..4c1ab4a --- /dev/null +++ b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.il @@ -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 index 0000000..32d6094 --- /dev/null +++ b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj @@ -0,0 +1,51 @@ + + + + + Debug + AnyCPU + $(MSBuildProjectName) + 2.0 + {95DFC527-4DC1-495E-97D7-E94EE1F7140D} + Exe + Properties + 512 + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + $(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages + ..\..\ + 7a9bfb7d + + + + + + + + + False + + + + None + True + + + + + + + + + + + + + + + diff --git a/src/coreclr/tests/testsFailingOutsideWindows.txt b/src/coreclr/tests/testsFailingOutsideWindows.txt index de94b28..901172b 100644 --- a/src/coreclr/tests/testsFailingOutsideWindows.txt +++ b/src/coreclr/tests/testsFailingOutsideWindows.txt @@ -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 -- 2.7.4