Compile the testcase with: .../cc1 -fpreprocessed libgcc2.i -g -O2 -fnon-call-exceptions -o libgcc2.s This results in an ICE in reload_cse_simplify_operands, since an earlyclobber output has been allocated the same register as an input of an asm template.
Created attachment 11599 [details] testcase (preprocessed __udivmoddi4 source)
I've tried this on rev 205674 (4.9) and it seems that time has fixed the issue.
Reportedly fixed (comment #2).