https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79985
Bug ID: 79985 Summary: ICE in code_motion_path_driver, at sel-sched.c:6580 Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-linux-gnu Target: ppc64le-linux-gnu I spotted following ICE on trunk: $ cat memmove.i long a; int b; void c () { __asm("" : "=r"(a) : "0"(c)); __asm("" : "=r"(b)); } $ ppc64le-linux-gnu-gcc -fselective-scheduling -O3 -fselective-scheduling memmove.i -c memmove.i: In function ācā: memmove.i:8:1: internal compiler error: in code_motion_path_driver, at sel-sched.c:6580 } ^ 0x9ceac0 code_motion_path_driver .././../gcc/sel-sched.c:6580 0x9ceeb3 move_op .././../gcc/sel-sched.c:6704 0x9ceeb3 move_exprs_to_boundary .././../gcc/sel-sched.c:5227 0x9ceeb3 schedule_expr_on_boundary .././../gcc/sel-sched.c:5440 0x9d2741 fill_insns .././../gcc/sel-sched.c:5582 0x9d2741 schedule_on_fences .././../gcc/sel-sched.c:7356 0x9d2741 sel_sched_region_2 .././../gcc/sel-sched.c:7494 0x9d5319 sel_sched_region_1 .././../gcc/sel-sched.c:7536 0x9d5319 sel_sched_region(int) .././../gcc/sel-sched.c:7637 0x9d5cf9 run_selective_scheduling() .././../gcc/sel-sched.c:7713 0x9b58fd rest_of_handle_sched .././../gcc/sched-rgn.c:3708 0x9b58fd execute .././../gcc/sched-rgn.c:3818