[llvm-bugs] [Bug 30418] New: error in backend: Cannot select: t17: x86mmx = select_cc t2, Constant:i64<0>, t7, t8, seteq:ch

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 16 12:10:51 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30418

            Bug ID: 30418
           Summary: error in backend: Cannot select: t17: x86mmx =
                    select_cc t2,  Constant:i64<0>, t7, t8, seteq:ch
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17285
  --> https://llvm.org/bugs/attachment.cgi?id=17285&action=edit
compiler-command script

One of our generated-source testers found this.

$ cat bz157150.cpp
typedef long __m64 __attribute__((__vector_size__(8)));
__m64 test47(long id9969) {
  long id9966;
  unsigned char *bytes = (unsigned char*)&id9966;
  for (unsigned i = 0; i != 7; ++i) {
    bytes[0] = 0 + i;
  }
  for (char id9967_idx = 0; (id9967_idx < 1) && id9969; ++id9967_idx) {
    id9966 *= id9967_idx;
  }
  __m64 id9965 = (__m64)(id9966);
  return __builtin_ia32_psllw(id9965, id9965);
}
$ clang -c -O1 bz157150.cpp
fatal error: error in backend: Cannot select: t17: x86mmx = select_cc t2,
      Constant:i64<0>, t7, t8, seteq:ch
  t2: i64,ch = CopyFromReg t0, Register:i64 %vreg0
    t1: i64 = Register %vreg0
  t3: i64 = Constant<0>
  t7: x86mmx = bitcast Constant:i64<6>
    t6: i64 = Constant<6>
  t8: x86mmx = bitcast Constant:i64<0>
    t3: i64 = Constant<0>
In function: _Z6test47l
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (trunk 281729)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/probinson/projects/llvm-org/trunk/cobj/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.cpp
clang-4.0: note: diagnostic msg: /tmp/bz157150-461a80.sh
clang-4.0: note: diagnostic msg: 

********************

-- 
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/20160916/d3250e01/attachment.html>


More information about the llvm-bugs mailing list