This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/44727] [4.6 Regression] Failed to bootstrap with --with-cpu=atom
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2010 21:53:38 -0000
- Subject: [Bug bootstrap/44727] [4.6 Regression] Failed to bootstrap with --with-cpu=atom
- References: <bug-44727-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from hjl dot tools at gmail dot com 2010-06-30 21:53 -------
Function get_attribute is miscompiled. The difference is
--
--- /tmp/good.s 2010-06-30 14:36:46.971155015 -0700
+++ /tmp/bad.s 2010-06-30 14:38:49.211031644 -0700
@@ -3966,18 +3966,18 @@ get_attribute:
jne .L499
movq 104(%rdi), %rcx
movq %rax, %rdi
- addq %rdx, %rax
+ leaq (%rax,%rdx), %rax
subq 0(%rbp), %rdi
+ leaq 2(%rax), %rdx
orl $-1, %ebx
movq %rdi, 8(%rcx)
- leaq 2(%rax), %rdx
movq %rdx, 16(%rbp)
movzbl (%rax), %eax
+ movl %esi, %edi
sall $8, %eax
movzbl -1(%rdx), %ecx
orl %eax, %ecx
- sall $3, %ecx
- leal (%rcx,%rsi), %esi
+ leal (%rdi,%rcx,8), %esi
cmpl %esi, %r13d
jb .L381
movslq %ecx, %rcx
--
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44727