Re: [PATCH] Fix ICE on _Fract division (PR tree-optimization/81428)

2017-07-17 Thread Richard Biener
On Thu, Jul 13, 2017 at 10:41 PM, Jakub Jelinek wrote: > Hi! > > _Fract types can't express 1, other spots that call build_one_cst already > make sure that the type is integral or uses the !ALL_FRACT_MODE_P (TYPE_MODE > (type)) > check I've added in this patch. > > Bootstrapped/regtested on x86_6

[PATCH] Fix ICE on _Fract division (PR tree-optimization/81428)

2017-07-13 Thread Jakub Jelinek
Hi! _Fract types can't express 1, other spots that call build_one_cst already make sure that the type is integral or uses the !ALL_FRACT_MODE_P (TYPE_MODE (type)) check I've added in this patch. Bootstrapped/regtested on x86_64-linux and i686-linux and tested with a cross to arm on the testcase.