home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3235 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!acri.FR!adda
  2. From: adda@acri.FR (Serge Adda)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: My fix for my previous bug report
  5. Date: 22 Jan 1993 21:44:31 -0500
  6. Organization: Advanced Computer Research Institute
  7. Lines: 42
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301211719.AA16067@lscc1.acri.fr>
  12.  
  13. Thu Jan 21 18:12:49 1993  Serge Adda  (adda@soft01)
  14.  
  15.     * expmed.c (emit_store_flag): get the new value of icode
  16.     using the returned comparison.
  17.  
  18. *** expmed.c.old    Thu Jan 21 18:06:45 1993
  19. --- expmed.c    Thu Jan 21 18:08:37 1993
  20. ***************
  21. *** 2755,2761 ****
  22.             && (STORE_FLAG_VALUE 
  23.             == (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
  24.       {
  25. !       rtx subtarget = target;
  26.   
  27.         /* If the result is to be wider than OP0, it is best to convert it
  28.        first.  If it is to be narrower, it is *incorrect* to convert it
  29. --- 2755,2761 ----
  30.             && (STORE_FLAG_VALUE 
  31.             == (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1)))))
  32.       {
  33. !       subtarget = target;
  34.   
  35.         /* If the result is to be wider than OP0, it is best to convert it
  36.        first.  If it is to be narrower, it is *incorrect* to convert it
  37. ***************
  38. *** 2805,2810 ****
  39. --- 2805,2814 ----
  40.           : normalizep == 1 ? const1_rtx
  41.           : normalizep == -1 ? constm1_rtx
  42.           : const_true_rtx);
  43. +       /* Comparison opernads could have been swapped;
  44. +      so get the new comprison code.  */
  45. +       icode = setcc_gen_code[(int) GET_CODE (comparison)];
  46.   
  47.         /* Get a reference to the target in the proper mode for this insn.  */
  48.         compare_mode = insn_operand_mode[(int) icode][0];
  49.  
  50. Serge Adda - A.C.R.I. Compiler Team
  51. email: adda@acri.fr
  52.  
  53.  
  54.