Skip to content

Commit

Permalink
[JIT] ARM64 - Do not allow move and shifting with MSL on 16-bit vecto…
Browse files Browse the repository at this point in the history
…rs (#77123)

* Do not allow move and shifting with MSL on 16-bit vectors

* Update src/coreclr/jit/emitarm64.cpp

Co-authored-by: Bruce Forstall <[email protected]>

Co-authored-by: Bruce Forstall <[email protected]>
  • Loading branch information
TIHan and BruceForstall authored Oct 19, 2022
1 parent 10d342c commit 6c949f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coreclr/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3041,7 +3041,9 @@ emitter::code_t emitter::emitInsCode(instruction ins, insFormat fmt)
{
canEncode = true;
}
if (allow_MSL)

// MSL is only supported for 32-bit.
if (allow_MSL && (size == EA_4BYTE))
{
if ((bySh == 1) && (immCheck == 0xFF))
{
Expand Down

0 comments on commit 6c949f5

Please sign in to comment.