Article View: gnu.gcc.bug
Article #1644My fix for my previous bug report
From: Serge Adda
Date: Sat, 23 Jan 1993 02:44
Date: Sat, 23 Jan 1993 02:44
40 lines
1832 bytes
1832 bytes
Thu Jan 21 18:12:49 1993 Serge Adda (adda@soft01)
* expmed.c (emit_store_flag): get the new value of icode
using the returned comparison.
*** expmed.c.old Thu Jan 21 18:06:45 1993
--- expmed.c Thu Jan 21 18:08:37 1993
***************
*** 2755,2761 ****
&& (STORE_FLAG_VALUE
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
{
! rtx subtarget = target;
/* If the result is to be wider than OP0, it is best to convert it
first. If it is to be narrower, it is *incorrect* to convert it
--- 2755,2761 ----
&& (STORE_FLAG_VALUE
== (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
{
! subtarget = target;
/* If the result is to be wider than OP0, it is best to convert it
first. If it is to be narrower, it is *incorrect* to convert it
***************
*** 2805,2810 ****
--- 2805,2814 ----
: normalizep == 1 ? const1_rtx
: normalizep == -1 ? constm1_rtx
: const_true_rtx);
+
+ /* Comparison opernads could have been swapped;
+ so get the new comprison code. */
+ icode = setcc_gen_code[(int) GET_CODE (comparison)];
/* Get a reference to the target in the proper mode for this insn. */
compare_mode = insn_operand_mode[(int) icode][0];
Serge Adda - A.C.R.I. Compiler Team
email: adda@acri.fr
Technical Details
Message-ID:
<9301211719.AA16067@lscc1.acri.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!acri.FR!addaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!acri.FR!adda From: adda@acri.FR (Serge Adda) Newsgroups: gnu.gcc.bug Subject: My fix for my previous bug report Date: 22 Jan 1993 21:44:31 -0500 Organization: Advanced Computer Research Institute Lines: 42 Sender: daemon@cis.ohio-state.edu Approved: bug-gcc@prep.ai.mit.edu Distribution: gnu Message-ID: <9301211719.AA16067@lscc1.acri.fr>