[LLVMbugs] [Bug 5743] New: clang palignr codegen bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 9 15:34:36 PST 2009


           Summary: clang palignr codegen bug
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: echristo at gmail.com
                CC: llvmbugs at cs.uiuc.edu, echristo at gmail.com

Looks like clang has incorrect codegen for the following test:

#include <tmmintrin.h>

int main(int argc, char **argv) {
  __m128i x = _mm_setzero_si128(), y = _mm_alignr_epi8(x, x, 1);

  return 0;

Where it's generating:

        palignr $0, %xmm1, %xmm1

The constant should be $1. I'm guessing somewhere we've got an extra divide by

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