This patches fixes a bug affecting two patterns in arm/thumb2.md where the split condition was insufficient and allowed illegal rtl to be generated. The split condition for patterns "*thumb2_mov_negscc "and "*thumb_mov_notscc " allowed splitting that ignored "arm_restrict_it". This was causing illegal rtl to be generated for IT blocks which in turn caused an internal error.
Bootstrapped and regression tested on arm-linux-gnueabihf. Okay for trunk? 2018-01-28 Michael Collison <michael.colli...@arm.com> * config/arm/thumb2.md: (*thumb2_mov_negscc): Split only if TARGET_THUMB2 && !arm_restrict_it. (*thumb_mov_notscc): Ditto. * gcc.target/arm/pr7676.c: New testcase.
gnutools-7676.patch
Description: gnutools-7676.patch