https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83500
Bug ID: 83500 Summary: gcc.dg/tree-prof/switch-case-1.c fails on aarch64 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sje at gcc dot gnu.org Target Milestone: --- This test started failing on aarch64-linux-gnu with this checkin: commit b33f4eb038b5c30bf57de6bb10f40e11481c6be6 Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sat Oct 7 16:33:26 2017 +0000 * tree-switch-conversion.c (do_jump_if_equal, emit_cmp_and_jump_insns): Update profile. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253512 138bc75d-0d04-0410-96 1f-82ee72b054a4 Before the change I see these lines in the expand file: % grep 'basic block.* count 4000' *expand ;; basic block 17, loop depth 0, count 4000, freq 4000, maybe hot ;; basic block 18, loop depth 0, count 4000, freq 4000, maybe hot % grep 'basic block.* count 2000' *expand ;; basic block 23, loop depth 0, count 2000, freq 2000, maybe hot After the change I see these lines in the expand file: % grep 'basic block.* count 4000' *expand ;; basic block 17, loop depth 0, count 4000, freq 4000, maybe hot ;; basic block 18, loop depth 0, count 4000, freq 4000, maybe hot % grep 'basic block.* count 2000' *expand ;; basic block 8, loop depth 0, count 2000 (adjusted), freq 2000, maybe hot ;; basic block 23, loop depth 0, count 2000, freq 2000, maybe hot Having two lines with 'count 2000' is causing the test failure, I do not know if the test needs to be changed or if this is indicating an actual problem in the compiler.