public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/33138] [4.3 Regression] rejects valid? assembler, segfaults
Date: Tue, 21 Aug 2007 15:33:00 -0000	[thread overview]
Message-ID: <20070821153246.27351.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33138-12387@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from tbm at cyrius dot com  2007-08-21 15:32 -------
typedef unsigned long int word64;
extern word64 tiger_table[4 * 256];
tiger_compress (word64 * str, word64 state[3])
{
  {
    register word64 a, b, c;
    word64 aa, bb, cc;
    word64 x0, x1, x2, x3, x4, x5, x6, x7;
    b = ((word64 *) state)[1];
    bb = b;
    cc = c;
  __asm__ ("    movl    %10, %%ebx      \n" "   movq    %11, %%rcx      \n" "  
movq    %13, %%rdx   \n" "    movq    %6, %%r8  \n" " xorq    %%r8, %2         
       \n" "  andq    %2, %%rbx  \n" "     andq     %2, %%rcx  \n" "       
andq    %2, %%rdx  \n" "        shrl    $(16-3), %%ebx  \n" "   shrq $(32-3),
%%rcx   \n" "   shrq    $(48-3), %%rdx  \n" "   movzbl  %2b, %%eax      \n" "  
movzwl  %2w, %
%edi    \n" "   movq    (%7,%%rax,8), %%rsi  \n" "      shrl    $(8), %%edi 
\n" "      movq    %2, %%
rax  \n" "      xorq    (2048*1)(%7,%%rbx), %%rsi  \n" "        movq    %2,
%%rbx  \n" "        shrl $24, %%eax \n" " andq    %12, %%rbx      \n" "   xorq 
  (2048*2)(%7,%%rcx), %%rsi  \n" "        shrq $(40-3), %%rbx \n" "     movq   
%2, %%rcx  \n" "        xorq    (2048*3)(%7,%%rdx), %%rsi  \n"
 "      movq    (2048*3)(%7,%%rdi,8), %%rdx  \n" "      shrq    $56, %%rcx \n"
"        xorq    (2048*
2)(%7,%%rax,8), %%rdx  \n" "    xorq    (2048*1)(%7,%%rbx), %%rdx  \n" "       
subq     %%rsi, %0 \n"
 "      xorq    (%7,%%rcx,8), %%rdx  \n" "      addq     %%rdx, %1 \n" "leaq   
(%1,%1,8), %1\n": "+r"
 (c), "+r" (a), "+r" (b): "r" (c), "r" (a), "r" (b), "m" (x7), "r"
(&tiger_table), "i" (0xFFL), "i" (0
xFF00L), "i" (0xFF0000L), "r" (0xFF00000000LL), "r" (0xFF0000000000LL), "r"
(0xFF000000000000LL):"3",
"%rax", "%rbx", "%rcx", "%rdx", "%rsi", "%edi",
             "%r8");
      {
      }
    b -= bb;
    c += cc;
    ((word64 *) state)[1] = b;
    ((word64 *) state)[2] = c;
  };
}
tiger_t (word64 * str, word64 length, word64 res[3])
{
}


-- 


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


  parent reply	other threads:[~2007-08-21 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 15:32 [Bug target/33138] New: " tbm at cyrius dot com
2007-08-21 15:33 ` [Bug target/33138] " tbm at cyrius dot com
2007-08-21 15:33 ` tbm at cyrius dot com [this message]
2007-08-28 23:57 ` pinskia at gcc dot gnu dot org
2007-09-05  2:17 ` mmitchel at gcc dot gnu dot org
2007-09-05 15:42 ` jakub at gcc dot gnu dot org
2007-09-05 18:39 ` tbm at cyrius dot com
2007-10-09 14:58 ` rguenth at gcc dot gnu dot org
2007-10-10  7:35 ` tbm at cyrius dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070821153246.27351.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).