Re: [patch,avr] Fix PR71676 / PR71678: casesi not working for SImode / Dimode

2016-10-25 Thread Denis Chertykov
2016-10-24 13:33 GMT+03:00 Georg-Johann Lay : > This fixes issues with casesi that originate from taking hard coded > subreg:HI of the SImode switch value: > > * The subreg is cutting away the upper bytes which is wrong code if the > switch actually operates on a value > 16 bits. >

[patch,avr] Fix PR71676 / PR71678: casesi not working for SImode / Dimode

2016-10-24 Thread Georg-Johann Lay
This fixes issues with casesi that originate from taking hard coded subreg:HI of the SImode switch value: * The subreg is cutting away the upper bytes which is wrong code if the switch actually operates on a value > 16 bits. * The hard-coded subreg will ICE on DImode because of nested