platform/upstream/coreclr.git
8 years agoMerge pull request #6003 from Clockwork-Muse/master
Tarek Mahmoud Sayed [Sun, 26 Jun 2016 18:34:00 +0000 (11:34 -0700)]
Merge pull request #6003 from Clockwork-Muse/master

Add missing parameter names to BitArray.CopyTo exceptions

8 years agoAdd parameter names to exception.
Stephen A. Imhoff [Sun, 26 Jun 2016 05:35:29 +0000 (14:35 +0900)]
Add parameter names to exception.

8 years agoSwitch from literal parameter names to nameof
Stephen A. Imhoff [Sun, 26 Jun 2016 05:23:54 +0000 (14:23 +0900)]
Switch from literal parameter names to nameof

8 years agoMerge pull request #5993 from briansull/fix-5639
Brian Sullivan [Sat, 25 Jun 2016 06:18:36 +0000 (23:18 -0700)]
Merge pull request #5993 from briansull/fix-5639

Fix for issue 5639

8 years agoMerge pull request #5998 from briansull/Update-ReturnTypeDesc
Brian Sullivan [Sat, 25 Jun 2016 06:18:03 +0000 (23:18 -0700)]
Merge pull request #5998 from briansull/Update-ReturnTypeDesc

Incremental work on ReturnTypeDesc for multiReg return support

8 years agoMerge pull request #5985 from ericstj/incrementCoreCLR+Jit
Eric StJohn [Fri, 24 Jun 2016 23:28:35 +0000 (16:28 -0700)]
Merge pull request #5985 from ericstj/incrementCoreCLR+Jit

Update CoreCLR & JIT package versions

8 years agoMerge pull request #5979 from kyulee1/boolfold
Kyungwoo Lee [Fri, 24 Jun 2016 22:06:10 +0000 (15:06 -0700)]
Merge pull request #5979 from kyulee1/boolfold

ARM64: Fix Fold Type For optOptimizeBools

8 years agoUse libc.so as default libc name (#5990)
Peter Jas [Fri, 24 Jun 2016 22:01:11 +0000 (01:01 +0300)]
Use libc.so as default libc name (#5990)

Based on https://github.com/dotnet/coreclr/pull/5727#discussion_r68369439,
it turned out `/lib/libc.musl-x86_64.so.1` was just a symlink in
Alpine Linux to actual lib `/lib/ld-musl-x86_64.so.1`.

This delta makes libc.so as default name for libc and removes all the
detection for musl and FreeBSD from cmake etc.

8 years agoChanges to ReturnTypeDesc support more than two return registers
Brian Sullivan [Thu, 23 Jun 2016 02:37:59 +0000 (19:37 -0700)]
Changes to ReturnTypeDesc support more than two return registers

Changed m_regType into an array
Renamed the Initialize method to InitializeReturnType

8 years agoFix for issue 5639
Brian Sullivan [Fri, 24 Jun 2016 18:24:46 +0000 (11:24 -0700)]
Fix for issue 5639

Added check for hfa type
Update Test.lst removing the appropriate R2R_FAIL tags

8 years agoUpdate supported profiler APIs
noahfalk [Fri, 24 Jun 2016 20:25:11 +0000 (13:25 -0700)]
Update supported profiler APIs

8 years agoARM64: Fix Small Operation For optOptimizeBools
Kyungwoo Lee [Thu, 23 Jun 2016 22:30:08 +0000 (15:30 -0700)]
ARM64: Fix Small Operation For optOptimizeBools

Fixes https://github.com/dotnet/coreclr/issues/5955

When merging two boolean operations (cmp/jmp) in optOptimizeBools, JIT
creates type based on operand type.
There is a case the operand type is bool (1 byte) so JIT creates a tree
that does 1 byte operation which arm64 cannot encode.
The fix is to bail out such case for arm in general.

This passes all 1375 tests in System.Net.Http.Unit.Tests.

8 years agoMerge pull request #5991 from kyulee1/stacklimit
Kyungwoo Lee [Fri, 24 Jun 2016 20:03:23 +0000 (13:03 -0700)]
Merge pull request #5991 from kyulee1/stacklimit

ARM64: Fix StackLimit

8 years agoMerge pull request #5973 from cmckinsey/DevDiv_216571
Chris McKinsey [Fri, 24 Jun 2016 19:05:47 +0000 (12:05 -0700)]
Merge pull request #5973 from cmckinsey/DevDiv_216571

Fix SBCG in value-numbering constant assertprop

8 years agoMerge pull request #5940 from briansull/retbuf-nonstandard
Brian Sullivan [Fri, 24 Jun 2016 18:18:07 +0000 (11:18 -0700)]
Merge pull request #5940 from briansull/retbuf-nonstandard

ARM64: Change the fixed return buffer argument to be handled as a non-standard argument

8 years agoFix SBCG in value-numbering constant assertprop
Chris McKinsey [Tue, 21 Jun 2016 17:59:32 +0000 (10:59 -0700)]
Fix SBCG in value-numbering constant assertprop

Value-numbering can assign the same value number to nodes
of different type as long as they have the same bit-representation.
However when substituting a constant into a tree node of different
type, we want the bit-exact representation and not the same value.
Assertion prop should reinterpret int/float value changes rather
than coercing them.

Add an il test that exposes a bug in assertionprop when doing
value-numbering based constant propagation. A cpblk can be used
to copy a scalar value between differing types but for which there
is no change in bit representation.

8 years agoARM64: Fix StackLimit
Kyungwoo Lee [Fri, 24 Jun 2016 13:31:21 +0000 (06:31 -0700)]
ARM64: Fix StackLimit

Fixes https://github.com/dotnet/coreclr/issues/5640
We often got AV for tests that do a large stack allocations.
The fix is to match stack limt setup same as x64.

8 years agoMerge pull request #5986 from dotnet-bot/UpdateDependencies20160624051958
Gaurav Khanna [Fri, 24 Jun 2016 13:55:32 +0000 (06:55 -0700)]
Merge pull request #5986 from dotnet-bot/UpdateDependencies20160624051958

Updating External dependencies to beta-24224-00

8 years agoFix typo to apply mac build workaround only on OSX (#5988)
Ivan Baravy [Fri, 24 Jun 2016 12:59:51 +0000 (16:59 +0400)]
Fix typo to apply mac build workaround only on OSX (#5988)

/init-tools.sh:72 tries to compare strings like this:
if [ "$OS"=="OSX" ]; then

What it actually does is different to what it looks like:
$ echo $OS
$ if [ "$OS"=="OSX" ]; then echo EQUAL; fi
EQUAL
$ if [ "$OS" == "OSX" ]; then echo EQUAL; fi
$

This commit fixes the typo and makes OSX workaround run on macs only.

8 years agoFix Issue #5542 (#5827)
chunseoklee [Fri, 24 Jun 2016 12:56:55 +0000 (21:56 +0900)]
Fix Issue #5542 (#5827)

On arm32, NullReference exception for interface call is not handled
properly. Especially, when callsite is a virtualstub(dispatch/resolve), AV exception
occurs on indirect cell. Since this stub is not a part of
managed or markedjithelper, exception handler considers this is a native
seg fault.
I added :
(1) FaultingExceptionFrame construction routine for virtualstub
(2) Checking and IP-adjusting routine for VirtualStub

8 years agoUse BIT64 define for 64-bit specific code. (#5987)
MyungJoo Ham [Fri, 24 Jun 2016 12:51:53 +0000 (21:51 +0900)]
Use BIT64 define for 64-bit specific code. (#5987)

Using WIN32/WIN64 for 32/64-bit architecture dependent code confuses
developers especially those who develop coreclr for non-Windows
systems. Therefore, such definitions are modified to BIT64.

Fixes #4737

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoUpdating External dependencies to beta-24224-00
dotnet-bot [Fri, 24 Jun 2016 05:19:58 +0000 (05:19 +0000)]
Updating External dependencies to beta-24224-00

8 years agoUpdate CoreCLR & JIT package versions
Eric St. John [Fri, 24 Jun 2016 04:42:15 +0000 (21:42 -0700)]
Update CoreCLR & JIT package versions

Increment these versions to facilitate stable repack of 1.0.2.

8 years agoMerge pull request #5983 from prajwal-aithal/devel/arm-ci-checked-fix
Jarret Shook [Fri, 24 Jun 2016 03:35:02 +0000 (20:35 -0700)]
Merge pull request #5983 from prajwal-aithal/devel/arm-ci-checked-fix

ARM-CI: Prevent creation of job for Checked configuration (rebased over #5961)

8 years agoMerge pull request #5980 from dotnet-bot/from-tfs
Jan Kotas [Fri, 24 Jun 2016 03:18:16 +0000 (20:18 -0700)]
Merge pull request #5980 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoARM-CI: Prevent creation of job for Checked configuration
Prajwal A N [Thu, 23 Jun 2016 07:14:18 +0000 (16:14 +0900)]
ARM-CI: Prevent creation of job for Checked configuration

Previously we checked if the configuration being built is either of Debug or Release
after the job had already been created. This resulted in a job being created for
Checked configuration with no commands to execute (for this job).
We prevent the unnecessary creation of job for the Checked configuration by
returning control at the very beginning of the <LinuxARMEmulator, arm, Checked> iteration

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5960 from pgavlin/CheckDefPython3
Pat Gavlin [Fri, 24 Jun 2016 02:39:35 +0000 (19:39 -0700)]
Merge pull request #5960 from pgavlin/CheckDefPython3

Make check-definitions compatible with Python 3.

8 years agoMerge pull request #5923 from mikedn/x86-store-lclvar
Chris McKinsey [Fri, 24 Jun 2016 02:18:52 +0000 (19:18 -0700)]
Merge pull request #5923 from mikedn/x86-store-lclvar

Fix statement insertion point in GT_STORE_LCL_VAR decomposition

8 years ago[SOS][Linux] Support of reading local variables from portable PDB (#5897)
Evgeny Pavlov [Fri, 24 Jun 2016 02:00:47 +0000 (06:00 +0400)]
[SOS][Linux] Support of reading local variables from portable PDB (#5897)

* Initial support of reading local variables from portable pdb using System.Diagnostics.Debug.SymbolReader.dll

* Use SysAllocString and SysFreeString for memory management

* Fix coding style after review

8 years agoMerge pull request #5961 from jashook/arm32_ci_ubuntu_cross_fix
Jarret Shook [Fri, 24 Jun 2016 00:46:28 +0000 (17:46 -0700)]
Merge pull request #5961 from jashook/arm32_ci_ubuntu_cross_fix

Seperate the ubuntu-arm build and emulator build

8 years agoUndo accidental change
Jan Kotas [Thu, 23 Jun 2016 23:52:36 +0000 (16:52 -0700)]
Undo accidental change

[tfs-changeset: 1614521]

8 years agoAdd missing contracts
Jan Kotas [Thu, 23 Jun 2016 23:51:31 +0000 (16:51 -0700)]
Add missing contracts

[tfs-changeset: 1614520]

8 years agoSeperate the ubuntu-arm build and emulator build
jashoo [Thu, 23 Jun 2016 17:23:09 +0000 (10:23 -0700)]
Seperate the ubuntu-arm build and emulator build

The name for the arm32 ubuntu cross build and the arm32 emulator build are the same. This
also disables the ubuntu cross build per pr.

8 years agoMerge pull request #5968 from RussKeldorph/jitstress
Russ Keldorph [Thu, 23 Jun 2016 23:39:03 +0000 (16:39 -0700)]
Merge pull request #5968 from RussKeldorph/jitstress

Move R2R JitStress jobs into the jitstress folder with the others.

8 years agoMerge pull request #5959 from pgavlin/AOTPlaceholderFile
Pat Gavlin [Thu, 23 Jun 2016 23:32:48 +0000 (16:32 -0700)]
Merge pull request #5959 from pgavlin/AOTPlaceholderFile

Add AOT placeholder files to the JIT package.

8 years agoAdd braces to avoid operator priority confusion (#5964)
Jan Kotas [Thu, 23 Jun 2016 21:44:44 +0000 (14:44 -0700)]
Add braces to avoid operator priority confusion (#5964)

8 years agoSupport for updating a nonStandard arg in-place the ArrayStack when it is modified...
Brian Sullivan [Thu, 23 Jun 2016 21:15:37 +0000 (14:15 -0700)]
Support for updating a nonStandard arg in-place the ArrayStack when it is modified by fgMorphTree

8 years agoMerge pull request #5963 from dotnet-bot/from-tfs
Aditya Mandaleeka [Thu, 23 Jun 2016 20:59:35 +0000 (13:59 -0700)]
Merge pull request #5963 from dotnet-bot/from-tfs

Merge changes from TFS

8 years agoAdd AOT placeholder files to the JIT package.
Pat Gavlin [Thu, 23 Jun 2016 16:41:49 +0000 (09:41 -0700)]
Add AOT placeholder files to the JIT package.

This is intended to prevent accidental inclusion in UWP projects.

8 years agoFix GC profiling on arm-softfp (#5952)
Ivan Baravy [Thu, 23 Jun 2016 20:18:06 +0000 (00:18 +0400)]
Fix GC profiling on arm-softfp (#5952)

This commit updates one preprocessor directive inside gc.h to initialize
dwEtwRootKind field of ScanContext when GC_PROFILING is defined while
FEATURE_EVENT_TRACE is not. This happens to platforms like arm-softfp.

8 years agoMove R2R JitStress jobs into the jitstress folder with the others.
Russ Keldorph [Thu, 23 Jun 2016 19:28:07 +0000 (12:28 -0700)]
Move R2R JitStress jobs into the jitstress folder with the others.

8 years agoMerge pull request #5939 from BruceForstall/FixPinvoke
Bruce Forstall [Thu, 23 Jun 2016 19:32:21 +0000 (12:32 -0700)]
Merge pull request #5939 from BruceForstall/FixPinvoke

Fix RyuJIT/x86 P/Invoke inlining

8 years agoMerge branch 'master' into retbuf-nonstandard
Brian Sullivan [Thu, 23 Jun 2016 18:25:53 +0000 (11:25 -0700)]
Merge branch 'master' into retbuf-nonstandard

8 years agoFix build break in internal build
Jan Kotas [Thu, 23 Jun 2016 18:13:01 +0000 (11:13 -0700)]
Fix build break in internal build

[tfs-changeset: 1614475]

8 years agoMerge pull request #5935 from rahku/test
Rahul Kumar [Thu, 23 Jun 2016 18:06:43 +0000 (11:06 -0700)]
Merge pull request #5935 from rahku/test

Fix test runner batch file to provide correct TPA path

8 years agoMerge pull request #5936 from briansull/fullIntArgRegMask
Brian Sullivan [Thu, 23 Jun 2016 17:37:53 +0000 (10:37 -0700)]
Merge pull request #5936 from briansull/fullIntArgRegMask

Introduce the method fullIntArgRegMask() to replace many uses of RBM_ARG_REGS

8 years agoMerge pull request #5937 from ellismg/pass-build-id-flag-to-linker
Matt Ellis [Thu, 23 Jun 2016 17:35:38 +0000 (10:35 -0700)]
Merge pull request #5937 from ellismg/pass-build-id-flag-to-linker

Pass --build-id=sha1 to linker explicitly

8 years agoMerge pull request #5962 from dotnet/revert-5945-devel/arm-ci-checked-fix
Jarret Shook [Thu, 23 Jun 2016 17:28:50 +0000 (10:28 -0700)]
Merge pull request #5962 from dotnet/revert-5945-devel/arm-ci-checked-fix

Revert "ARM-CI: Prevent creation of job for Checked configuration"

8 years agoRevert "ARM-CI: Prevent creation of job for Checked configuration"
Jarret Shook [Thu, 23 Jun 2016 17:28:42 +0000 (10:28 -0700)]
Revert "ARM-CI: Prevent creation of job for Checked configuration"

8 years agoMake check-definitions compatible with Python 3.
Pat Gavlin [Thu, 23 Jun 2016 17:10:25 +0000 (10:10 -0700)]
Make check-definitions compatible with Python 3.

Import and use the Python 3-compatible print_function from __future__.

8 years agoEnable RyuJIT/x86 PInvoke lowering
Bruce Forstall [Thu, 12 May 2016 14:31:13 +0000 (07:31 -0700)]
Enable RyuJIT/x86 PInvoke lowering

Fixes #4181 "NYI_X86: Implement PInvoke frame init inlining for x86"

The main work here is to handle the custom calling convention for the
x86 CORINFO_HELP_INIT_PINVOKE_FRAME helper call: it takes EDI as an argument,
trashes only EAX, and returns the TCB in ESI.

The code changes are as follows:
1. Lowering::InsertPInvokeMethodProlog(): don't pass the "secret stub param" for x86.
Also, don't store the InlinedCallFrame.m_pCallSiteSP in the prolog: for x86 this is done
at the call site, due to the floating stack pointer.
2. LinearScan::getKillSetForNode(): for helper calls, call compHelperCallKillSet() to get the killMask,
to account for non-standard kill sets.
3. Morph.cpp::fgMorphArgs(): set non-standard arguments for CORINFO_HELP_INIT_PINVOKE_FRAME.
4. compHelperCallKillSet(): set the correct kill set for CORINFO_HELP_INIT_PINVOKE_FRAME.
5. codegenxarch.cpp::genCallInstruction(): set the ABI return register for CORINFO_HELP_INIT_PINVOKE_FRAME.
6. lowerxarch.cpp::TreeNodeInfoInit(): set the GT_CALL dstCandidates for CORINFO_HELP_INIT_PINVOKE_FRAME.

5 & 6 are both needed to avoid a copy.

With this change, the #1 NYI with 18415 hits over the tests is gone.
The total number of NYI is now 29516.

8 years agoEnable out-of-proc unwinding on ARM (#5946)
kvochko [Thu, 23 Jun 2016 16:23:20 +0000 (20:23 +0400)]
Enable out-of-proc unwinding on ARM (#5946)

Fix #5855

8 years agoMerge pull request #5890 from adiaaida/x86LongCallFinal
Michelle McDaniel [Thu, 23 Jun 2016 15:14:49 +0000 (08:14 -0700)]
Merge pull request #5890 from adiaaida/x86LongCallFinal

Enable GT_CALL with long ret types for x86 RyuJIT

8 years agoMerge pull request #5945 from prajwal-aithal/devel/arm-ci-checked-fix
Jarret Shook [Thu, 23 Jun 2016 15:05:21 +0000 (08:05 -0700)]
Merge pull request #5945 from prajwal-aithal/devel/arm-ci-checked-fix

ARM-CI: Prevent creation of job for Checked configuration

8 years agoMerge pull request #5944 from dotnet-bot/UpdateDependencies20160623052003
Gaurav Khanna [Thu, 23 Jun 2016 14:17:56 +0000 (07:17 -0700)]
Merge pull request #5944 from dotnet-bot/UpdateDependencies20160623052003

Updating External dependencies to beta-24223-00

8 years agoScripts: verify compiler definitions of native and managed (#4675)
MyungJoo Ham [Thu, 23 Jun 2016 11:13:46 +0000 (20:13 +0900)]
Scripts: verify compiler definitions of native and managed (#4675)

* Scripts: find out compiler definitions of CMake

In order to find mismatch between native and managed,
we need to know the list of definitions of native.

The copmiler definitions are stored at cmake.definitions

This addresses the complaints of #4674

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
* Scripts: add check-definitions.py

scripts/check-definitions.py checks the consistency between
the native-build (CMake) compiler definitions and
the managed-build (MSBuild/mscorlib) compiler definitions
at build-time and prints out potentially dangerous
inconsistencies.

In order to get the proper results, managed build should
be executed after the native build (build.sh will do so
if no options such as skipnative or skipmanaged are given.)

Fix #4674

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
* Scripts: allow check-definitions py to ignore the harmless

The third argument of check-definitions.py specifies harmless keywords
to be suppressed from emitting warning messages.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
* Scripts: add ignored cdefine keywords for warning

As an example of how to declare compiler definition keywords
that are harmless to be inconsistent between the native and the
managed, we have added FEATURE_IMPLICIT_TLS and FEATURE_HIJACK.

Developers may add more keywords in System.Private.CoreLib.csproj
if the keywords are verified to be harmless; i.e., although
the keywords exist in both cmake and clr.coreclr.props,
the keywords are NEVER used in either side of the sources
or the keywords only happen to have the same name while they
denote the completely different semantics and may be disjoint.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoARM-CI: Prevent creation of job for Checked configuration
Prajwal A N [Thu, 23 Jun 2016 07:14:18 +0000 (16:14 +0900)]
ARM-CI: Prevent creation of job for Checked configuration

Previously we checked if the configuration being built is either of Debug or Release
after the job had already been created. This resulted in a job being created for
Checked configuration with no commands to execute (for this job).
We prevent the unnecessary creation of job for the Checked configuration by
returning control at the very beginning of the <LinuxARMEmulator, arm, Checked> iteration

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5934 from Maoni0/gcwhere
Maoni Stephens [Thu, 23 Jun 2016 07:07:49 +0000 (00:07 -0700)]
Merge pull request #5934 from Maoni0/gcwhere

enable GCWhere on PAL

8 years agoBuild the GC as part of its own CMake target (#5932)
Sean Gillespie [Thu, 23 Jun 2016 06:40:41 +0000 (23:40 -0700)]
Build the GC as part of its own CMake target (#5932)

8 years agoUpdating External dependencies to beta-24223-00
dotnet-bot [Thu, 23 Jun 2016 05:20:03 +0000 (05:20 +0000)]
Updating External dependencies to beta-24223-00

8 years agoMerge pull request #5211 from prajwal-aithal/devel/automate-arm-ci
Jarret Shook [Thu, 23 Jun 2016 03:46:08 +0000 (20:46 -0700)]
Merge pull request #5211 from prajwal-aithal/devel/automate-arm-ci

ARM-CI: Make the Linux ARM emulator check automatic

8 years agoARM-CI: Make the Linux ARM emulator check automatic
Prajwal A N [Wed, 25 May 2016 10:48:38 +0000 (19:48 +0900)]
ARM-CI: Make the Linux ARM emulator check automatic

* Previously the Linux ARM emulator build had to be triggered manually
* Making this check automatic based on the stability of emulator build

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5942 from prajwal-aithal/devel/arm-ci-results-fix
Jarret Shook [Thu, 23 Jun 2016 02:49:09 +0000 (19:49 -0700)]
Merge pull request #5942 from prajwal-aithal/devel/arm-ci-results-fix

ARM-CI: Resolving typo in result path

8 years agoARM-CI: Resolving typo in result path
Prajwal A N [Thu, 23 Jun 2016 02:14:10 +0000 (11:14 +0900)]
ARM-CI: Resolving typo in result path

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5941 from prajwal-aithal/devel/arm-ci-results-fix
Jarret Shook [Thu, 23 Jun 2016 01:54:49 +0000 (18:54 -0700)]
Merge pull request #5941 from prajwal-aithal/devel/arm-ci-results-fix

ARM-CI: Change result archiving from emulated to cross build

8 years agoARM-CI: Change result archiving from emulated to cross build
Prajwal A N [Thu, 23 Jun 2016 01:16:34 +0000 (10:16 +0900)]
ARM-CI: Change result archiving from emulated to cross build

Previous PR assumed emulated build and thus archived the binaries inside the emulator.
But since cross build produces binaries inside the source folder, change the result path

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoChange the Arm64 fixed return buffer argument to be handled as a non-standard argument
Brian Sullivan [Thu, 23 Jun 2016 00:40:39 +0000 (17:40 -0700)]
Change the Arm64 fixed return buffer argument to be handled as a non-standard argument

We already have support for the handling of non-standard arguments and
it is simpler and better to handle the fixed return buffer argument as a non-standard argument.

8 years agoPass --build-id=sha1 to linker explicitly
Matt Ellis [Thu, 23 Jun 2016 00:31:15 +0000 (17:31 -0700)]
Pass --build-id=sha1 to linker explicitly

On some platforms, a build-id was not being added to native artifacts
and we would like it to be present. Explicitly pass --build-id=sha1 to
the linker.

Fixes #5796

8 years agoIntroduce the method fullIntArgRegMask()
Brian Sullivan [Wed, 22 Jun 2016 21:36:45 +0000 (14:36 -0700)]
Introduce the method fullIntArgRegMask()

This method returns the full integer argument register mask
that also include the fixed return buffer argument register.

8 years agoMerge pull request #5931 from briansull/fix-crossgen-arm64
Brian Sullivan [Thu, 23 Jun 2016 00:27:32 +0000 (17:27 -0700)]
Merge pull request #5931 from briansull/fix-crossgen-arm64

Fix for Arm64 crossgen break

8 years agoenable GCWhere on PAL and fixed a bug in 859307b where it's missing a function in...
Maoni0 [Wed, 22 Jun 2016 19:23:11 +0000 (12:23 -0700)]
enable GCWhere on PAL and fixed a bug in 859307b where it's missing a function in Linux

8 years agoFix test runner batch file to provide correct TPA path
Rahul Kumar [Thu, 23 Jun 2016 00:14:38 +0000 (17:14 -0700)]
Fix test runner batch file to provide correct TPA path

8 years agoMerge pull request #3484 from Dmitry-Me/fixBrokenCondition
Aditya Mandaleeka [Thu, 23 Jun 2016 00:11:12 +0000 (17:11 -0700)]
Merge pull request #3484 from Dmitry-Me/fixBrokenCondition

Fix impossible condition

8 years agoMerge pull request #5933 from prajwal-aithal/devel/arm-ci-script-fix
Jarret Shook [Wed, 22 Jun 2016 23:49:49 +0000 (16:49 -0700)]
Merge pull request #5933 from prajwal-aithal/devel/arm-ci-script-fix

ARM-CI: Use CI cross build script in emulator

8 years agoARM-CI: Use CI cross build script in emulator
Prajwal A N [Wed, 22 Jun 2016 23:21:54 +0000 (08:21 +0900)]
ARM-CI: Use CI cross build script in emulator

Previous PRs added the build commands to the groovy script.
But this did not work for various reasons.
The current patch makes the CI system execute the bash script
that does the cross build. The bash script is already supplied with the emulator

Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
8 years agoMerge pull request #5929 from BruceForstall/CleanUpPinvokeLowering
Bruce Forstall [Wed, 22 Jun 2016 23:15:41 +0000 (16:15 -0700)]
Merge pull request #5929 from BruceForstall/CleanUpPinvokeLowering

Clean up PInvoke lowering

8 years agoFix for Arm64 crossgen break
Brian Sullivan [Wed, 22 Jun 2016 22:48:45 +0000 (15:48 -0700)]
Fix for Arm64 crossgen break

Remorphing a call with an x8 Return buffer arg asserts

8 years agoClean up PInvoke lowering
Bruce Forstall [Wed, 22 Jun 2016 21:37:31 +0000 (14:37 -0700)]
Clean up PInvoke lowering

Mostly, add lots of comments.

8 years agoEnable GT_CALL with long ret types for x86 RyuJIT
Michelle McDaniel [Tue, 31 May 2016 15:40:16 +0000 (08:40 -0700)]
Enable GT_CALL with long ret types for x86 RyuJIT

1) Enables genMultiRegCallStoreToLocal for x86 RyuJIT. Forces long return
types to be stored to the stack after returning from a call.

2) Update lvaPromoteLongVars to not promote a long if it is a multi reg
arg or ret.

3) Adds NYI for call arguments that are longs and contain adds or
subtracts. We are currently producing the wrong order of operations so
that we can push the argument immediately after performing the arithmetic.
We will do the hi adc/sbb before the carry bit has been set by doing the
lo operation.

4) Adds an NYI for morphing a node into a call node if the call will have
a long return type.

5) Moves the logic for forcing var = call() for calls with long return
types to lower::DecomposeNode().

8 years agoAdd regression test
Mike Danes [Wed, 22 Jun 2016 20:59:17 +0000 (23:59 +0300)]
Add regression test

8 years agoMerge pull request #5926 from kyulee1/cmpxchg
Kyungwoo Lee [Wed, 22 Jun 2016 20:43:29 +0000 (13:43 -0700)]
Merge pull request #5926 from kyulee1/cmpxchg

ARM64: Skip CompareExchangeTClass Test

8 years agoMerge pull request #5915 from BruceForstall/FgMorphArgsCleanup
Bruce Forstall [Wed, 22 Jun 2016 20:41:25 +0000 (13:41 -0700)]
Merge pull request #5915 from BruceForstall/FgMorphArgsCleanup

Clean up fgMorphArgs

8 years agoMerge pull request #5891 from rahku/arm64retbuf
Rahul Kumar [Wed, 22 Jun 2016 20:35:13 +0000 (13:35 -0700)]
Merge pull request #5891 from rahku/arm64retbuf

Arm64:return buffer arg should be passed in x8

8 years agoMerge pull request #5389 from parjong/fix/issue_5357
Carol Eidt [Wed, 22 Jun 2016 20:09:55 +0000 (13:09 -0700)]
Merge pull request #5389 from parjong/fix/issue_5357

Run fgMorphCopyBlock for newly inserted assignment

8 years agoMerge pull request #5871 from mikedn/modopt
Carol Eidt [Wed, 22 Jun 2016 20:02:32 +0000 (13:02 -0700)]
Merge pull request #5871 from mikedn/modopt

Improve div/mod by const power of 2

8 years agoMerge pull request #5925 from RussKeldorph/j32_issues
Aditya Mandaleeka [Wed, 22 Jun 2016 19:49:30 +0000 (12:49 -0700)]
Merge pull request #5925 from RussKeldorph/j32_issues

Fix syntax error in x86_jit32_issues.targets

8 years agoMerge pull request #5904 from pgavlin/WalkTreePostExecutionOrder
Pat Gavlin [Wed, 22 Jun 2016 18:27:09 +0000 (11:27 -0700)]
Merge pull request #5904 from pgavlin/WalkTreePostExecutionOrder

Obey GTF_REVERSE_OPS in fgWalkTreePost.

8 years agoARM64: Skip CompareExchangeTClass Test
Kyungwoo Lee [Wed, 22 Jun 2016 18:19:24 +0000 (11:19 -0700)]
ARM64: Skip CompareExchangeTClass Test

This test seems to fail often in CI. Disable it for now.

8 years agoMerge pull request #5905 from sejongoh/group_jitstress_jobs
Sejong Oh [Wed, 22 Jun 2016 18:12:38 +0000 (11:12 -0700)]
Merge pull request #5905 from sejongoh/group_jitstress_jobs

Move all JIT stress jobs into a sub directory on CI

8 years agoFix syntax error in x86_jit32_issues.targets
Russ Keldorph [Wed, 22 Jun 2016 18:09:12 +0000 (11:09 -0700)]
Fix syntax error in x86_jit32_issues.targets

8 years agoMerge pull request #5924 from wtgodbe/groovalicious
William Godbe [Wed, 22 Jun 2016 17:46:46 +0000 (10:46 -0700)]
Merge pull request #5924 from wtgodbe/groovalicious

Run all tests under server GC during code coverage job

8 years agoRun all tests under server GC
wtgodbe [Wed, 22 Jun 2016 17:43:55 +0000 (10:43 -0700)]
Run all tests under server GC

8 years agoMerge pull request #5921 from JohnChen0/master
John Chen [Wed, 22 Jun 2016 17:43:23 +0000 (10:43 -0700)]
Merge pull request #5921 from JohnChen0/master

Disable a test case till issue #5501 is fixed

8 years ago[SOS] [Linux] Fix incorrect symbol loading from portable pdb (#5896)
Evgeny Pavlov [Wed, 22 Jun 2016 16:56:51 +0000 (20:56 +0400)]
[SOS] [Linux] Fix incorrect symbol loading from portable pdb (#5896)

* Fix incorrect symbol loading from portable pdb

* Change return value to S_OK

8 years agoGenerate symbols packages for Windows CoreCLR binaries. (#5902)
Mike McLaughlin [Wed, 22 Jun 2016 16:55:33 +0000 (09:55 -0700)]
Generate symbols packages for Windows CoreCLR binaries. (#5902)

* Generate symbols packages for Windows CoreCLR binaries.

Issue #5832.

* Add dll/exe back to symbol package.

8 years agoFix statement insertion point in GT_STORE_LCL_VAR decomposition
Mike Danes [Wed, 22 Jun 2016 16:44:34 +0000 (19:44 +0300)]
Fix statement insertion point in GT_STORE_LCL_VAR decomposition

In some cases a newly created statement is inserted between the current statement and its embedded statements instead of being inserted after the current statement and its embedded statements.

8 years agoMerge pull request #5919 from gkhanna79/FixCOC
Gaurav Khanna [Wed, 22 Jun 2016 16:31:25 +0000 (09:31 -0700)]
Merge pull request #5919 from gkhanna79/FixCOC

Add Code of Conduct details to README.md

8 years agoDisable a test case till issue #5501 is fixed
John Chen [Wed, 22 Jun 2016 16:12:44 +0000 (09:12 -0700)]
Disable a test case till issue #5501 is fixed

8 years agoOptimize integer div/mod by const power of 2 in lowering
Mike Danes [Mon, 9 May 2016 22:01:12 +0000 (01:01 +0300)]
Optimize integer div/mod by const power of 2 in lowering

Optimizing GT_DIV/GT_UDIV/GT_MOD/GT_UMOD by power of 2 in codegen is problematic because the xarch DIV instruction has special register requirements. By the time codegen decides to perform the optimization the rax and rdx registers have been already allocated by LSRA even though they're not always needed (as it happens in the case of unsigned division where CDQ isn't used).

Since the JIT can't represent a CDQ instruction in its IR an arithmetic shift (GT_RSH) has been instead to extract the dividend sign. xarch's SAR is larger than CDQ but it has the advantage that it doesn't require specific registers. Also, arithmetic shifts are available on architectures other than xarch.

Example: method "static int foo(int x) => x / 8;" is now compiled to
mov      eax, ecx
mov      edx, eax
sar      edx, 31
and      edx, 7
add      edx, eax
mov      eax, edx
sar      eax, 3

instead of
mov      eax, ecx
cdq
and      edx, 7
add      eax, edx
sar      eax, 3

As a side-effect of this change the optimization now also works when the divisor is too large to be contained. Previously this wasn't possible because the divisor constant needed to be modified during codegen but the constant was already loaded into a register.

Example: method "static ulong foo(ulong x) => x / 4294967296;" is now compiled to
mov      rax, rcx
shr      rax, 32

whereas before a DIV instruction was used.

This change also fixes an issue in fgShouldUseMagicNumberDivide. The optimization that is done in lower can handle negative power of 2 divisors but fgShouldUseMagicNumberDivide handled those cases because it didn't check the absolute value of the divisor.

Example: method "static int foo(int x) => return x / -2;" is now compiled to

mov      eax, ecx
mov      edx, eax
shr      edx, 31
add      edx, eax
sar      edx, 1
mov      eax, edx
neg      eax

instead of
mov      eax, 0x7FFFFFFF
imul     edx:eax, ecx
mov      eax, edx
sub      eax, ecx
mov      edx, eax
shr      edx, 31
add      eax, edx

8 years agoAdd tests for integer div/mod by const
Mike Danes [Sat, 14 Nov 2015 08:46:20 +0000 (10:46 +0200)]
Add tests for integer div/mod by const