[LLVMbugs] [Bug 7352] New: x86/llvm-mc missing instructions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 10 16:34:59 PDT 2010


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

           Summary: x86/llvm-mc missing instructions
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: astrange at ithinksw.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5011)
 --> (http://llvm.org/bugs/attachment.cgi?id=5011)
testcase

> /Xcode4/usr/bin/clang -v           
Apple clang version 2.0 (tags/Apple/clang-107.1)
Target: x86_64-apple-darwin10
Thread model: posix

Attached file has 5 inline asm instructions which compile with standard as but
fail to assemble with clang/llvm-mc.

> gcc -c asmtests.c             
> clang -c asmtests.c
<inline asm>:1:2: error: unrecognized instruction
        add $1, 1(%esp) 
        ^
asmtests.c:4:19: note: generated from here
    asm volatile ("add $1, 1(%esp) \n");
                  ^
<inline asm>:1:9: error: unknown token in expression
        lea 1+(%eax), %ebx 
               ^
asmtests.c:10:19: note: generated from here
    asm volatile ("lea 1+(%eax), %ebx \n");
                  ^
<inline asm>:1:2: error: unrecognized instruction
        pavgusb %mm1, %mm0 
        ^
asmtests.c:16:19: note: generated from here
    asm volatile ("pavgusb %mm1, %mm0 \n");
                  ^
<inline asm>:1:2: error: unrecognized instruction
        jmp *1(%esp) 
        ^
asmtests.c:22:19: note: generated from here
    asm volatile ("jmp *1(%esp) \n");
                  ^
<inline asm>:1:2: error: unrecognized instruction
        prefetch (%eax) 
        ^
asmtests.c:28:19: note: generated from here
    asm volatile ("prefetch (%eax) \n");
                  ^
5 errors generated.

These are all required to compile FFmpeg.

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