Fixes #56930 (#57000)
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Fri, 6 Aug 2021 22:19:51 +0000 (15:19 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 22:19:51 +0000 (15:19 -0700)
commit3caf2f06da38347fee9fe24faa78ada2ed3f147c
tree226fab346e3b3234c1b545d952da8bea4c3bed5b
parent22fa9e8b473440bcbce9a5cb2d09c17970614134
Fixes #56930 (#57000)

* Don't eliminate store for the following sequence of instructions
```
ldr wzr, [addrReg, #immOff]
str wzr, [addrReg, #immOff]
```

* Add regression test for https://github.com/dotnet/runtime/issues/56930
src/coreclr/jit/emitarm64.cpp
src/tests/JIT/Regression/JitBlue/Runtime_56930/Runtime_56930.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_56930/Runtime_56930.csproj [new file with mode: 0644]