From: Stan Cox Date: Fri, 6 Jun 1997 20:23:26 +0000 (+0000) Subject: (notice_cc_update): Set CC_FCOMI is this is a float compare. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a86202361ec068a3bd7c8614e5178a189e217cf7;p=gcc.git (notice_cc_update): Set CC_FCOMI is this is a float compare. From-SVN: r14164 --- diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 4a17d804e66..895c66f4eac 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3409,8 +3409,13 @@ notice_update_cc (exp) if (SET_DEST (XVECEXP (exp, 0, 0)) == cc0_rtx) { CC_STATUS_INIT; - if (stack_regs_mentioned_p (SET_SRC (XVECEXP (exp, 0, 0)))) - cc_status.flags |= CC_IN_80387; + if (stack_regs_mentioned_p (SET_SRC (XVECEXP (exp, 0, 0)))) + { + cc_status.flags |= CC_IN_80387; + if (TARGET_CMOVE && stack_regs_mentioned_p + (XEXP (SET_SRC (XVECEXP (exp, 0, 0)), 1))) + cc_status.flags |= CC_FCOMI; + } else cc_status.value1 = SET_SRC (XVECEXP (exp, 0, 0)); return;