Ensure we don't underestimate the code size for 4 byte SSE instruction. (dotnet/corec...
authorTanner Gooding <tagoo@outlook.com>
Sat, 18 May 2019 04:28:38 +0000 (21:28 -0700)
committerGitHub <noreply@github.com>
Sat, 18 May 2019 04:28:38 +0000 (21:28 -0700)
commit1b028906970c1ef5ecb53b8a2a26f2c9a9376ee1
treecf3c7f0ff2455f415d9882c7b5a06a9cca671a99
parentd927e223e4890137829572a9a1b3aef09fb2f271
Ensure we don't underestimate the code size for 4 byte SSE instruction. (dotnet/coreclr#24555)

* Ensure the code size estimate for emitIns_R_S is correct for 4 byte SSE instruction.

* Centralizing the Is4ByteSSEInstruction size adjustment handling

* Removing unnecessary calls to emitGetVexPrefixAdjustedSize

* Ensure all registers are checked against IsExtendedReg

* Ensure that the ival size is correct for SSE/AVX instructions

* Applying formatting patch

* Ensure all cases for emitIns_R_R_I are covered

* Fixing a inst_RV_RV_IV call to ensure ival fits in a byte

* Centralize some more checks into emitGetAdjustedSize

* Applying formatting patch

Commit migrated from https://github.com/dotnet/coreclr/commit/a3e43d62917bb542e1adda0a06684061ef77067f
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/emitxarch.cpp
src/coreclr/src/jit/emitxarch.h
src/coreclr/src/jit/simdcodegenxarch.cpp