[Bug c++/71942] [ARM] Zero-extending whats allready zero-extended even when -O3

2016-07-20 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71942 Richard Earnshaw changed: What|Removed |Added Keywords||missed-optimization Targe

[Bug c++/71942] [ARM] Zero-extending whats allready zero-extended even when -O3

2016-07-20 Thread albrecht.guendel at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71942 --- Comment #1 from Albi --- To give a minimum case: int main(void) { volatile unsigned short foo = 0; while(1) foo ^= 1; } creates: ldrh.w r3, [sp, #6] uxthr3, r3<< again no reason for this eor.w r3, r3, #1 strh.w r3, [