Fix genCodeForIndexAddr
authorMike Danes <onemihaid@hotmail.com>
Sun, 10 Feb 2019 10:35:01 +0000 (12:35 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 12 Feb 2019 06:38:12 +0000 (08:38 +0200)
commit1ebc719829b86bbb14e3425caeed9b1fd43e2bac
tree2c10fd012fafc9d6b860db0e62681faf9cd2681d
parentbe867d41cdab578768a42eb39d8c4724af437c8e
Fix genCodeForIndexAddr

This does some weird things - treats the array length as 64 bit when it's in fact 32 bit, fails to zero extend TYP_INT indices, creates new GT_IND/GT_LEA nodes out of thin air.

Commit migrated from https://github.com/dotnet/coreclr/commit/9b78e13d5c2bb48c33320421ade29d2408872934
src/coreclr/src/jit/codegenxarch.cpp