<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 --- - intrinsic function __sync_lock_test_and_set does not generate code for int128"
href="http://llvm.org/bugs/show_bug.cgi?id=19428">19428</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>intrinsic function __sync_lock_test_and_set does not generate code for int128
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pw@padd.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>Test case:
__int128 tas128(volatile __int128 *ptr, __int128 new_value)
{
return __sync_lock_test_and_set(ptr, new_value);
}
clang -mcx16 atomic.c && nm atomic.o
Shows undefined external symbol for __sync_lock_test_and_set_16
Same code with int64_t works fine; inline code for
__sync_lock_test_and_set_8 is generated.
On gcc-4.8, the 128-bit atomic operation does generate assembly
to use cmpxchg16b as hoped.</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>