From 475c825089f2734f8be45f0cb2b43095e8347249 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Tue, 21 Jan 2003 02:03:14 +0000 Subject: [PATCH] ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x is not a scalar int mode. * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x is not a scalar int mode. From-SVN: r61525 --- gcc/ChangeLog | 5 +++++ gcc/ifcvt.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0ed2d3d31bd..ecbd2f951e0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-20 John David Anglin + + * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x + is not a scalar int mode. + 2003-01-20 Roger Sayle * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 72dc2e12f658..6b069af265d3 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -647,8 +647,8 @@ noce_emit_store_flag (if_info, x, reversep, normalize) end_sequence (); } - /* Don't even try if the comparison operands are weird. */ - if (cond_complex) + /* Don't even try if the comparison operands or the mode of X are weird. */ + if (cond_complex || !SCALAR_INT_MODE_P (GET_MODE (x))) return NULL_RTX; return emit_store_flag (x, code, XEXP (cond, 0),