[LLVMbugs] [Bug 11422] New: AVX2 instructions generated with AVX1 target

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 22 08:53:27 PST 2011


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

             Bug #: 11422
           Summary: AVX2 instructions generated with AVX1 target
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7639
  --> http://llvm.org/bugs/attachment.cgi?id=7639
bitcode

I'm still seeing some illegal instruction issues on an AVX1 system due to the
AVX1 target generating AVX2 instructions; the attached test case provides a
number of examples.  (A number of the below are AVX1, but note e.g. vpand,
vpxor, vpaddd/vpaddq, ..  I think some of the shifts are AVX2-only as well.)

% llc -mattr=+avx x.bc -o - | grep vp | awk '{print $1}' | sort | uniq
vblendvps
vdivps
vpaddd
vpaddq
vpand
vpcmpeqd
vpcmpgtd
vpermilps
vpextrd
vpextrq
vpextrw
vpinsrd
vpinsrw
vpminsd
vpmuludq
vpshufd
vpslld
vpsllq
vpsrad
vpsrld
vpsrlq
vpunpcklqdq
vpxor
%

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