This is the mail archive of the gcc-bugs@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]

[Bug target/13003] New: Invalid .quad produced


unsigned long long foo = 0xfedcba9876543210ULL;

Produces the following assembly:

        .file   "x.c"
.globl foo
        .data
        .align 8
        .type   foo, @object
        .size   foo, 8
foo:
        .quad   -81985529216486896
        .ident  "GCC: (GNU) 3.3.2 (NetBSD nb1 20031026)"

Which generates the following gas errors:

/tmp/ccMG5HBs.s: Assembler messages:
/tmp/ccMG5HBs.s:8: Error: bignum invalid

Note that on a ILP32 host, the quad is split into two .long's:

        .long   -19088744
        .long   1985229328

-- 
           Summary: Invalid .quad produced
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: matt at 3am-software dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64--netbsd
  GCC host triplet: x86_64--netbsd
GCC target triplet: i386--netbsdelf


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


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