[LLVMbugs] [Bug 12401] New: _mm_poermute_ps implementation incorrect

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 29 08:23:33 PDT 2012


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

             Bug #: 12401
           Summary: _mm_poermute_ps implementation incorrect
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kretz at kde.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


patch for avxintrin.h:

 #define _mm_permute_ps(A, C) __extension__ ({ \
   __m128 __A = (A); \
   (__m128)__builtin_shufflevector((__v4sf)__A, (__v4sf) _mm_setzero_ps(), \
                                    (C) & 0x3, ((C) & 0xc) >> 2, \
-                                   ((C) & 0x30) >> 4, ((C) & 0xc0) >> 8); })
+                                   ((C) & 0x30) >> 4, ((C) & 0xc0) >> 6); })

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