This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: patch for usage of more accurate live information for the globaland the reload.


	The patch causes a regression on PowerPC:

/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c: In
function `foo':
/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c:53:
error: insn does not satisfy its constraints:
(insn:HI 184 247 248 0 (parallel [
            (set (reg:SI 28 28 [185])
                (lshiftrt:SI (neg:SI (abs:SI (reg/v:SI 0 0 [orig:126 m_max
		] [126])))
                    (const_int 31 [0x1f])))
            (clobber (reg:SI 0 0))
        ]) 418 {*ne0} (nil)
    (nil))
/farm/dje/src/src/gcc/testsuite/gcc.c-torture/compile/920501-4.c:53:
internal compiler error: in reload_cse_simplify_operands, at
postreload.c:378

	The pattern is:

(define_insn "*ne0"
  [(set (match_operand:SI 0 "gpc_reg_operand" "=&r")
        (lshiftrt:SI (neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r")))
                     (const_int 31)))
   (clobber (match_scratch:SI 2 "=&r"))]

and after your patch, GPR r0 is allocated to both operand0 and operand2,
which are early clobber.

	Would you please investigate and fix this?

Thanks, David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]