<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - error in backend: Cannot select v4i32 = fadd"
href="https://llvm.org/bugs/show_bug.cgi?id=30511">30511</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error in backend: Cannot select v4i32 = fadd
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ed0.88.prez@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>While attempting to compile zdoom ( github.com/rheit/zdoom ), I got an internal
backend error like this:
fatal error: error in backend: Cannot select: 0x37ccb70: v4i32 = fadd
0x37ea5b0,
0x37e17c0
0x37ea5b0: v4i32 = bitcast 0x37fc2b0
0x37fc2b0: v2f64 = fmul 0x3800440, 0x37a0ba0
0x3800440: v2f64 = X86ISD::UNPCKL 0x37d1d10, 0x37cab60
0x37d1d10: v2f64 = scalar_to_vector 0x37bcbf0
0x37bcbf0: f64,ch =
load<LD8[%19](tbaa=<0x2e74bf8>)(noalias=<0x3533b78>)> 0x35f8000, 0x37c0160,
undef:i64
0x37c0160: i64 = add 0x37d9330, Constant:i64<136>
0x37d9330: i64,ch = CopyFromReg 0x35f8000, Register:i64 %vreg28
0x37a2bc0: i64 = Register %vreg28
0x37b3250: i64 = Constant<136>
0x3858440: i64 = undef
0x37cab60: v2f64 = scalar_to_vector 0x37a5010
0x37a5010: f64,ch =
load<LD8[%21](tbaa=<0x2e74bf8>)(noalias=<0x2f8a7b8>)> 0x35f8000, 0x3806cd0,
undef:i64
0x3806cd0: i64 = add 0x37d9330, Constant:i64<152>
0x37d9330: i64,ch = CopyFromReg 0x35f8000, Register:i64 %vreg28
0x37a2bc0: i64 = Register %vreg28
0x37afcc0: i64 = Constant<152>
0x3858440: i64 = undef
0x37a0ba0: v2f64,ch = load<LD16[ConstantPool]> 0x35f8000, 0x3858590,
undef:i64
0x3858590: i64 = X86ISD::Wrapper TargetConstantPool:i64<<2 x double>
<double 0x4166C16C16C16C17, double 0x4166C16C16C16C17>> 0
0x37ed340: i64 = TargetConstantPool<<2 x double> <double
0x4166C16C16C16C17, double 0x4166C16C16C16C17>> 0
0x3858440: i64 = undef
0x37e17c0: v4i32 = bitcast 0x37e9f20
0x37e9f20: v2f64,ch = load<LD16[ConstantPool]> 0x35f8000, 0x37e1280,
undef:i64
0x37e1280: i64 = X86ISD::Wrapper TargetConstantPool:i64<<2 x double>
<double 0x4338000000000000, double 0x4338000000000000>> 0
0x37d9170: i64 = TargetConstantPool<<2 x double> <double
0x4338000000000000, double 0x4338000000000000>> 0
0x3858440: i64 = undef
In function: _ZNK6AActor21IsInsideVisibleAnglesEv
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 4.0.0-svn282316-1~exp1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/p_mobj-0df7d3.cpp
clang: note: diagnostic msg: /tmp/p_mobj-0df7d3.sh
clang: note: diagnostic msg:
********************
src/CMakeFiles/zdoom.dir/build.make:4456: recipe for target
'src/CMakeFiles/zdoom.dir/p_mobj.cpp.o' failed
make[2]: *** [src/CMakeFiles/zdoom.dir/p_mobj.cpp.o] Error 70
CMakeFiles/Makefile2:639: recipe for target 'src/CMakeFiles/zdoom.dir/all'
failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I'm on Ubuntu 16.04 x64 and I'm using clang from apt.llvm.org. I attached a zip
file containing also a .ll file I generated by appending -emit-llvm .</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>