Arm64: Support additional condition checks in select nodes (#78223)
authorAlan Hayward <a74nh@users.noreply.github.com>
Mon, 14 Nov 2022 13:59:26 +0000 (13:59 +0000)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 13:59:26 +0000 (14:59 +0100)
commit4276f0675b09a1e91c4879f8964a6150d7199fcf
tree830a002b45607c0db21e4d9f1708f0f1ff0a312d
parent4ff7eca4e02f8e09d134e4fac0dd202d484df899
Arm64: Support additional condition checks in select nodes (#78223)

Generating a FEQ or FNEU will generate an incorrect compare.

With the optimizer code fixed, it's not possible to generate a
test to trigger the code in codegen. However, the code as it is was
wrong. Given it's untested, it might be better to replace it with
some asserts?

I've added some general compare consume tests to ensure everything
is generated ok.
src/coreclr/jit/codegenarm64.cpp
src/coreclr/jit/optimizer.cpp
src/tests/JIT/opt/Compares/compares.cs
src/tests/JIT/opt/Compares/compares.csproj