[PATCH] Fix ICE PR94144

Jeff Law law@redhat.com
Mon Mar 23 15:51:52 GMT 2020


On Mon, 2020-03-23 at 16:32 +0100, Andrea Corallo wrote:
> Hi all,
> 
> I'd like to submit this for PR94144.
> 
> The patch prevent 'simplify_logical_relational_operation' to generate
> insn with a float only operator with non float operands.
> 
> 
> In the PR the following
> 
> (ior:SI (gt:SI (reg:CC 66 cc)
>                (const_int 0 [0]))
> 	(le:SI (reg:CC 66 cc)
>                (const_int 0 [0])))
> 
> was simplified into
> 
> (ordered:SI (reg:CC 66 cc)
> 	    (const_int 0 [0]))
> 
> causing ICE.
> 
> Bootstrapped on x86_64-linux-gnu and aarch64-unknown-linux-gnu does
> not introduce testsuite regressions.
> 
> Andrea
> 
> gcc/ChangeLog
> 
> 2020-??-??  Andrea Corallo  <andrea.corallo@arm.com>
> 
> 	PR target/94144
> 	* simplify-rtx.c (simplify_logical_relational_operation): Guard
> 	against incoherent insn generation.
I've got a more complete fix for this that I'll be submitting today.
jeff



More information about the Gcc-patches mailing list