On targets that use short enums, this test produces different output
since the fold optimization does not apply to sizes smaller than a word.
Adjust the expected results until such time as this optimization can
be expanded to support shorter input values.
gcc/testsuite/ChangeLog:
PR tree-optimization/124909
* gcc.dg/match-shift-cmp-3.c: Adjust expected results for
target short_enums.
TEST_OP (eq, ==)
TEST_OP (ne, !=)
-/* { dg-final { scan-tree-dump-times "return 0;" 6 optimized } } */
-/* { dg-final { scan-tree-dump-times "return 1;" 6 optimized } } */
+/* { dg-final { scan-tree-dump-times "return 0;" 6 optimized { target { ! short_enums } } } } */
+/* { dg-final { scan-tree-dump-times "return 1;" 6 optimized { target { ! short_enums } } } } */
+/* { dg-final { scan-tree-dump-times "return 0;" 4 optimized { target { short_enums } } } } */
+/* { dg-final { scan-tree-dump-times "return 1;" 4 optimized { target { short_enums } } } } */