2016-09-20 13:07 GMT+03:00 Georg-Johann Lay <a...@gjlay.de>: > This fixes the case of CC_NONE (insn attribute for cc is "none"): > > Even in cases where the instructions of an insn do not change the condition > code of the machine, they still might change some registers by clobber, set, > etc. If one such register overlaps an expression stored in > cc_status.value1/2 we must reset cc_status as the value stored there no more > represents the state of cc0. > > Ok to apply and backport?
Ok. Please apply. > > > Johann > > gcc/ > PR target/77326 > * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn > touches some regs mentioned in cc_status, do CC_STATUS_INIT. > > gcc/testsuite/ > PR target/77326 > * gcc.target/avr/torture/pr77326.c: New test.