Remove GT_ADDEX and replace with more generalized containment handling (#76273)
authorTanner Gooding <tagoo@outlook.com>
Fri, 30 Sep 2022 01:24:23 +0000 (18:24 -0700)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2022 01:24:23 +0000 (18:24 -0700)
commitbfef7ccc856ac307fd5102c00ea54ddbe0b06fa3
tree643ba0cccdd0a11ab52192dc5a8ce514b842f7cc
parent43fa22f07449f24f6959b959e49c69aff91a8a14
Remove GT_ADDEX and replace with more generalized containment handling (#76273)

* Remove GT_ADDEX and replace with more generalized containment handling

* Handle small types for (extended register) instructions

* Remember to handle IsRegOptional

* Applying formatting patch

* Preference containing the CAST of `ADD(op1, CAST(op2))` rather than the op2 of CAST

* Update src/coreclr/jit/lowerarmarch.cpp

* Adding a test covering the caught fuzzlyn scenario

* Ensure the new test returns 100

* Skip a Fuzzlyn generated regression test on Mono wasm/llvmaot/llvmfullaot
src/coreclr/jit/codegen.h
src/coreclr/jit/codegenarm64.cpp
src/coreclr/jit/codegenarmarch.cpp
src/coreclr/jit/codegencommon.cpp
src/coreclr/jit/gtlist.h
src/coreclr/jit/lower.cpp
src/coreclr/jit/lowerarmarch.cpp
src/coreclr/jit/lsraarm64.cpp
src/tests/JIT/Regression/JitBlue/Runtime_76273/Runtime_76273.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_76273/Runtime_76273.csproj [new file with mode: 0644]
src/tests/issues.targets