<html>
<head>
<base href="http://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 --- - Backend crashes on mode(TI) add/sub for mips64"
href="http://llvm.org/bugs/show_bug.cgi?id=20098">20098</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Backend crashes on mode(TI) add/sub for mips64
</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>duane.sand@imgtec.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Android's 3.4 and 3.5 clang crashes in backend when compiling Android's latest
copy of compiler-rt to a mips64 target. The crashes happens on every
recently-added CRT_HAS_128BIT compiler_rt/lib/builtins/* routine that uses the
mode(TI) 128-bit integer datatype.
compile command for reduced example:
prebuilts/clang/linux-x86/host/3.5/bin/clang -target mips64el-linux-android
clangbug.c
Source code for reduced test case clangbug.c:
typedef int ti_int __attribute__ ((mode (TI)));
ti_int bug(ti_int a, ti_int b)
{
return a + b;
}
This gives the compile-time failure message:
fatal error: error in backend: Cannot select: 0xf8852f88: i64,glue = addc
0xf8852dd8, 0xf8850d00 [ORD=8] [ID=34]
0xf8852dd8: i64,ch = load 0xf8852d48, 0xf8851690,
0xf8851720<LD8[%1](align=16)> [ORD=6] [ID=32]
0xf8851690: i64 = FrameIndex<0> [ID=9]
0xf8851720: i64 = undef [ID=10]
0xf8850d00: i64,ch = CopyFromReg 0xf8843490, 0xf8850c70 [ORD=1] [ID=17]
0xf8850c70: i64 = Register %vreg2 [ID=3]
In function: bug
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.5
Target: mips64el--linux-android
This problem is preventing all builds of the mips64 version of Android at AOSP.
As a workaround until the mips64 codegen is made solid for this datatype and
that compiler is available at aosp, we are removing these unneeded
CRT_HAS_128BIT library routines via the compiler_rt patch
<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140616/222726.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140616/222726.html</a></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>