[LLVMbugs] [Bug 13349] New: Bad encoding of certain avx instructions on standard JIT

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 13 02:59:32 PDT 2012


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

             Bug #: 13349
           Summary: Bad encoding of certain avx instructions on standard
                    JIT
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jfonseca at vmware.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8886
  --> http://llvm.org/bugs/attachment.cgi?id=8886
vpslld.ll

See attached code.

This works:

  lli -use-mcjit vpslld.ll

but with mcjit we get

  lli vpslld.ll
  Illegal instruction

This is the difference between mcjit and standard jit:

    162:        c5 fd 6f 18                                             vmovdqa
(%rax), %ymm3
    166:        c5 f9 fe e3                                             vpaddd 
%xmm3, %xmm0, %xmm4
    170:        c5 f4 58 ca                                             vaddps 
%ymm2, %ymm1, %ymm1
-   174:        c5 e9 72 f4 17                                          vpslld 
$23, %xmm4, %xmm2
+   174:        c5 ed 72 f4 17                                          vpslld 
$23, %ymm4, %ymm2
    179:        c4 e3 7d 19 c0 01                                      
vextractf128    $1, %ymm0, %xmm0
    185:        c4 e3 7d 19 db 01                                      
vextractf128    $1, %ymm3, %xmm3
    191:        c5 f9 fe c3                                             vpaddd 
%xmm3, %xmm0, %xmm0
    195:        c5 f9 72 f0 17                                          vpslld 
$23, %xmm0, %xmm0
    200:        c4 e3 6d 18 c0 01                                      
vinsertf128     $1, %xmm0, %ymm2, %ymm0
    206:        c5 fc 59 c1                                             vmulps 
%ymm1, %ymm0, %ymm0

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