[LLVMbugs] [Bug 17495] New: Cannot select: 0x1020f2210: f64, ch, glue = X86ISD::FILD_FLAG

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 7 07:25:52 PDT 2013


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

            Bug ID: 17495
           Summary: Cannot select: 0x1020f2210: f64,ch,glue =
                    X86ISD::FILD_FLAG
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider the following test case:

#include <string.h>

void sample_move_dS_s24(float *dst, char *src, unsigned long nsamples, unsigned
long src_skip)
{
  while (nsamples--) {
    int x;
    memcpy((char*)&x + 1, src, 3);
    x >>= 8;
    *dst = x / 8388608.0f;
    dst++;
    src += src_skip;
  }
}

Compiling this with clang trunk r192062, using -m32 -O1 -c, results in:

fatal error: error in backend: Cannot select: 0x1020f2210: f64,ch,glue =
X86ISD::FILD_FLAG 0x101d3ceb8, 0x1020f2710, 0x1020f2a10<LD3[%2](align=1)>
[ID=23]
  0x1020f2710: i32,ch = CopyFromReg 0x101d3ceb8, 0x1020f2510 [ORD=2] [ID=18]
    0x1020f2510: i32 = Register %vreg2 [ORD=2] [ID=1]
In function: sample_move_dS_s24

Note there is no problem if the target is 64-bit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131007/58118ab6/attachment.html>


More information about the llvm-bugs mailing list