Commit a8620236 by Stan Cox

(notice_cc_update): Set CC_FCOMI is this is a float compare.

From-SVN: r14164
parent 110b339d
...@@ -3410,7 +3410,12 @@ notice_update_cc (exp) ...@@ -3410,7 +3410,12 @@ notice_update_cc (exp)
{ {
CC_STATUS_INIT; CC_STATUS_INIT;
if (stack_regs_mentioned_p (SET_SRC (XVECEXP (exp, 0, 0)))) if (stack_regs_mentioned_p (SET_SRC (XVECEXP (exp, 0, 0))))
{
cc_status.flags |= CC_IN_80387; 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 else
cc_status.value1 = SET_SRC (XVECEXP (exp, 0, 0)); cc_status.value1 = SET_SRC (XVECEXP (exp, 0, 0));
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment