[LLVMbugs] [Bug 4767] New: Cannot print this instruction.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Aug 24 14:00:57 PDT 2009


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

           Summary: Cannot print this instruction.
           Product: libraries
           Version: 2.6
          Platform: PC
               URL: http://svn.freebsd.org/base/head/lib/msun/src/s_fdim.c
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: pawel.worach at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


Compiling libm on FreeBSD end with the following assert. What is interesting
about this bug is that if I run s_fdim.c with clang -E and then compile the
pre-processed source it does not crash. So because of this I'm not sure how to
generate a useful testcase.

The source can be found here:
http://svn.freebsd.org/base/head/lib/msun/src/s_fdim.c

$ clang -O0 -c s_fdim.c
Assertion failed: (Bits != 0 && "Cannot print this instruction."), function
printInstruction, file
/usr/src-local/llvm/lib/Target/X86/AsmPrinter/../X86GenAsmWriter.inc, line
2230.
Stack dump:
0.      Program arguments: /usr/opt/llvm/bin/../libexec/clang-cc -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name s_fdim.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O0 -fdiagnostics-show-option -o /tmp/cc-Gbl72b.s -x c s_fdim.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'X86 AT&T-Style Assembly Printer' on function '@fdiml'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

ps. This happens with 2.6 too and would be nice if 2.6 could build the FreeBSD
world.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list