public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/49798] New: .quad instead of .long is used for address for x32
@ 2011-07-20 22:44 hjl.tools at gmail dot com
  2011-07-21  0:56 ` [Bug middle-end/49798] " hjl.tools at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2011-07-20 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: .quad instead of .long is used for address for x32
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


---
union U
{
  int *m;
  double d;
};

extern int xxxx;

int
foo (union U u)
{
  union U v = { &xxxx};
  return u.d == v.d;
}
---

I got

[hjl@gnu-6 gcc]$ ./xgcc -B./ -mx32 -O2 -S x.c 
[hjl@gnu-6 gcc]$ cat x.s
    .file    "x.c"
    .text
    .p2align 4,,15
    .globl    foo
    .type    foo, @function
foo:
.LFB0:
    .cfi_startproc
    movq    %rdi, -8(%rsp)
    movsd    .LC0(%rip), %xmm1
    movsd    -8(%rsp), %xmm0
    movl    $1, %eax
    ucomisd    %xmm1, %xmm0
    jp    .L3
    jne    .L3
    rep
    ret
    .p2align 4,,10
    .p2align 3
.L3:
    xorl    %eax, %eax
    .p2align 4,,9
    ret
    .cfi_endproc
.LFE0:
    .size    foo, .-foo
    .section    .rodata.cst8,"aM",@progbits,8
    .align 8
.LC0:
    .quad    xxxx
    .ident    "GCC: (GNU) 4.7.0 20110720 (experimental)"
    .section    .note.GNU-stack,"",@progbits
[hjl@gnu-6 gcc]$


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-07-22 11:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-20 22:44 [Bug middle-end/49798] New: .quad instead of .long is used for address for x32 hjl.tools at gmail dot com
2011-07-21  0:56 ` [Bug middle-end/49798] " hjl.tools at gmail dot com
2011-07-21  1:07 ` [Bug target/49798] " hjl.tools at gmail dot com
2011-07-21 10:26 ` ubizjak at gmail dot com
2011-07-21 13:10 ` hjl.tools at gmail dot com
2011-07-21 13:31 ` ubizjak at gmail dot com
2011-07-21 14:03 ` hjl.tools at gmail dot com
2011-07-21 15:54 ` hjl.tools at gmail dot com
2011-07-21 16:03 ` hjl.tools at gmail dot com
2011-07-21 16:26 ` ubizjak at gmail dot com
2011-07-21 16:33 ` hjl.tools at gmail dot com
2011-07-21 16:37 ` ubizjak at gmail dot com
2011-07-21 16:47 ` ubizjak at gmail dot com
2011-07-21 17:16 ` hjl.tools at gmail dot com
2011-07-21 17:19 ` hjl.tools at gmail dot com
2011-07-21 17:24 ` hjl.tools at gmail dot com
2011-07-21 20:00 ` hjl.tools at gmail dot com
2011-07-21 20:13 ` ubizjak at gmail dot com
2011-07-22 11:55 ` hjl.tools at gmail dot com

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).