<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 --- - Mips64el crash when using __uint128_t"
href="http://llvm.org/bugs/show_bug.cgi?id=22215">22215</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Mips64el crash when using __uint128_t
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>james410@cowgill.org.uk
</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>Found while attempting to compile libdispatch on mips64el.
<a href="https://tracker.debian.org/pkg/libdispatch">https://tracker.debian.org/pkg/libdispatch</a>
<a href="http://mipsdebian.imgtec.com/debian/logs/libd/libdispatch/libdispatch_0~svn197-3.3_mips64el-20150113-1543.build.gz">http://mipsdebian.imgtec.com/debian/logs/libd/libdispatch/libdispatch_0~svn197-3.3_mips64el-20150113-1543.build.gz</a>
Compiling this testcase (generated by creduce):
__uint128_t a;
b;
fn1() { a *= b; }
With clang like this:
clang-3.6 -target mips64el-unknown-linux-gnuabi64 test.c
Gives this error:
fatal error: error in backend: Cannot select: 0x277a470: i64,i64 = umul_lohi
0x27772e0, 0x277a140 [ORD=6] [ID=17]
0x27772e0: i64,ch = load 0x275b200, 0x277acf0, 0x27773f0<LD8[@a](align=16)>
[ORD=5] [ID=13]
0x277acf0: i64,ch = load 0x275b200, 0x2777b60, 0x27773f0<LD8[GOT]> [ORD=5]
[ID=11]
0x2777b60: i64 = MipsISD::Wrapper 0x2777940, 0x277a250 [ORD=5] [ID=9]
0x2777940: i64 = Register %vreg0 [ID=7]
0x277a250: i64 = TargetGlobalAddress<i128* @a> 0 [TF=16] [ORD=5] [ID=6]
0x27773f0: i64 = undef [ID=1]
0x27773f0: i64 = undef [ID=1]
0x277a140: i64,ch = load 0x275b200, 0x277b340, 0x27773f0<LD4[@b], sext from
i32> [ORD=4] [ID=15]
0x277b340: i64,ch = load 0x275b200, 0x277b230, 0x27773f0<LD8[GOT]> [ORD=3]
[ID=12]
0x277b230: i64 = MipsISD::Wrapper 0x2777940, 0x2777720 [ORD=3] [ID=10]
0x2777940: i64 = Register %vreg0 [ID=7]
0x2777720: i64 = TargetGlobalAddress<i32* @b> 0 [TF=16] [ORD=3] [ID=8]
0x27773f0: i64 = undef [ID=1]
0x27773f0: i64 = undef [ID=1]
In function: fn1
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
Debian clang version 3.6.0-svn224810-1 (trunk) (based on LLVM 3.6.0)</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>