🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Serge Adda Sat, 23 Jan 1993 02:44
My fix for my previous bug report
#1644
Author: Serge Adda
Date: Sat, 23 Jan 1993 02:44
40 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads