[LLVMbugs] [Bug 1348] NEW: x86_64 codegen bug in md5.c

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Apr 23 17:02:00 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1348

           Summary: x86_64 codegen bug in md5.c
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: scottm at aero.org


This occurs while compiling the C frontend, xgcc produces the following 
diagnostic:

(bosbok) libiberty make
if [ x"" != x ]; then \
          /work/scottm/llvm-cfrontend/obj/x86_64-unknown-linux-gnu/gcc/xgcc -B/work/scottm/llvm-cfrontend/obj/x86_64-unknown-linux-gnu/gcc/ -B/work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ -B/work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib/ -isystem /work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/include -isystem /work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../../../libiberty/md5.c -o 
pic/md5.o; \
        else true; fi
/work/scottm/llvm-cfrontend/obj/x86_64-unknown-linux-gnu/gcc/xgcc -B/work/scottm/llvm-cfrontend/obj/x86_64-unknown-linux-gnu/gcc/ -B/work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ -B/work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib/ -isystem /work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/include -isystem /work/scottm/llvm-cfrontend/i686-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../../libiberty/md5.c -o 
md5.o
/tmp/ccSlUbtP.s: Assembler messages:
/tmp/ccSlUbtP.s:924: Error: suffix or operands invalid for `sub'

The relevant portion from the assembler source is:

        .align  16
        .globl  md5_buffer
        .type md5_buffer, at function
md5_buffer:
        subq $4294966344, %rsp
        movq %rbp, -960(%rsp)
        leaq -960(%rsp), %rbp
        movq %rbx, -8(%rbp)
        movq %r12, -16(%rbp)
        movq %r14, -24(%rbp)
        movq %r15, -32(%rbp)

The "$42949663444" is the invalid constant about which xgcc (actually, gas) 
complains.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list