Fix arm64 localloc with large outgoing argument space
authorBruce Forstall <brucefo@microsoft.com>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commite7e9c0ff49c35691dc79f1e351dd62f12950af3e
tree908060077a7b3e01bfa874ec021430f0ca9953be
parent5073f843827df064ff65b3992e3569521dda00f8
Fix arm64 localloc with large outgoing argument space

With a large outgoing argument space, we were attempting to
generate un-encodable ADD and SUB instructions. Call an existing
helper instead that uses the reserved register when needed to
load large constants into a register.

Commit migrated from https://github.com/dotnet/coreclr/commit/2688d6b3137b04d2c3263564334335ec3e1630ad
src/coreclr/src/jit/codegenarm64.cpp