https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98123

            Bug ID: 98123
           Summary: if-to-switch tests fail on arm
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

The recently introduced if-to-switch-* tests fail on arm:

gcc.dg/tree-ssa/if-to-switch-2.c scan-tree-dump iftoswitch "Condition chain
with 3 BBs transformed into a switch statement."
gcc.dg/tree-ssa/if-to-switch-3.c scan-tree-dump iftoswitch "Condition chain
with 3 BBs transformed into a switch statement."
gcc.dg/tree-ssa/if-to-switch-4.c scan-tree-dump-not iftoswitch "Condition
chain"
gcc.dg/tree-ssa/if-to-switch-5.c scan-tree-dump iftoswitch "Condition chain
with 5 BBs transformed into a switch statement."
gcc.dg/tree-ssa/if-to-switch-6.c scan-tree-dump-not iftoswitch "Condition
chain"
gcc.dg/tree-ssa/if-to-switch-8.c scan-tree-dump-not iftoswitch "Condition
chain"

When GCC is configured with:
--target arm-none-linux-gnueabihf
--with-mode thumb
--with-cpu cortex-a5
--with-fpu vfpv3-d16-fp16

Configuring for cortex-a9 instead of cortex-a5 shows less failures, only:
gcc.dg/tree-ssa/if-to-switch-4.c scan-tree-dump-not iftoswitch "Condition
chain"
gcc.dg/tree-ssa/if-to-switch-6.c scan-tree-dump-not iftoswitch "Condition
chain"
gcc.dg/tree-ssa/if-to-switch-8.c scan-tree-dump-not iftoswitch "Condition
chain"

Reply via email to