I'm getting the following ICE on x86_64 with trunk.  I don't see this on
IA64.  It also worked with 4.3 20070604.

(sid)26226:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot//bin/gcc -c -O3
~/filezilla-sshsh512.c
/home/tbm/filezilla-sshsh512.c: In function 'SHA512_Simple':
/home/tbm/filezilla-sshsh512.c:25: error: insn does not satisfy its
constraints:
(insn 38 35 6 2 (set (reg/f:DI 53 virtual-incoming-args)
        (reg:DI 1 dx)) 82 {*movdi_1_rex64} (nil))
/home/tbm/filezilla-sshsh512.c:25: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.


Testcase:


typedef struct
{
  unsigned long hi, lo;
}
uint64;
typedef struct
{
  uint64 h[4];
}
SHA512_State;
SHA512_Core_Init (SHA512_State *s)
{
  static const uint64 iv[] = {
    {0x6a09e667, 0xf3bcc908},
    {0xbb67ae85, 0x84caa73b}
  };
  int i;
  for (i = 0; i < 4; i++)
    s->h[i] = iv[i];
}
SHA512_Simple (SHA512_State s)
{
  SHA512_Core_Init (&s);
  SHA512_Bytes (&s);
}


-- 
           Summary: [4.3 Regression] ICE in reload_cse_simplify_operands, at
                    postreload.c:396
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32342

Reply via email to