Ensure DecomposeRotate correctly orders parameters. (#86066)
authorTanner Gooding <tagoo@outlook.com>
Thu, 11 May 2023 19:10:03 +0000 (12:10 -0700)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 19:10:03 +0000 (12:10 -0700)
commitc13325f6f60700a7c6e75b1a2949a34fc78b00a7
tree8e230fe7e28fa7fe58b714b7af153ccffa282f2e
parentd4175a847a11c724e25407cc17929d35836e455e
Ensure DecomposeRotate correctly orders parameters. (#86066)

* Add a regression test for dotnet/runtime#86207

* Ensure RotateRight and RotateLeft decomposition orders parameters correctly

* Add explicit tests covering the other two DecomposeRotate paths

* Ensure other code paths that create GT_RSH_LO nodes aren't broken
src/coreclr/jit/codegenxarch.cpp
src/coreclr/jit/decomposelongs.cpp
src/tests/JIT/Regression/JitBlue/Runtime_86027/Runtime_86207.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_86027/Runtime_86207.csproj [new file with mode: 0644]