Fix arm/arm64 localloc
authorBruce Forstall <brucefo@microsoft.com>
Mon, 11 Dec 2017 22:52:05 +0000 (14:52 -0800)
committerBruce Forstall <brucefo@microsoft.com>
Mon, 11 Dec 2017 22:52:05 +0000 (14:52 -0800)
commit7ba4d83ee42c5b17a5a4c0dd72772a51f689575d
tree42d33b7d4aec34d34a56a14b247d31f68d946b7c
parent2b3fd06adc01ce05b121d586830ab628d9bdad84
Fix arm/arm64 localloc

In the loop, non-initialized memory case, the stack probing code
had silent bad codegen, as follows:
```
mov     r4, 0x4000
subs    r4, sp, r4
bvc     SHORT G_M3294_IG03
movs    r4, 0

G_M3294_IG03:

ldr     r0, [sp]
sub     r0, sp, 0x1000
cmp     r0, r4
blo     SHORT G_M3294_IG04
mov     sp, r0              // Before fix, this was "mov sp, r4"
b       SHORT G_M3294_IG03

G_M3294_IG04:
```
src/jit/codegenarm.cpp
src/jit/codegenarm64.cpp