<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang incorrectly optimize integer conversion from int to unsigned long long with -O2 on x86_64"
href="https://bugs.llvm.org/show_bug.cgi?id=52100">bug 52100</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang incorrectly optimize integer conversion from int to unsigned long long with -O2 on x86_64"
href="https://bugs.llvm.org/show_bug.cgi?id=52100#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang incorrectly optimize integer conversion from int to unsigned long long with -O2 on x86_64"
href="https://bugs.llvm.org/show_bug.cgi?id=52100">bug 52100</a>
from <span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span></b>
<pre>You didn't provide `initialize_site_prn_from_seed_opt()`,
but if i delete a call to it i get: <a href="https://godbolt.org/z/eKG3r4sK5">https://godbolt.org/z/eKG3r4sK5</a>
/app/example.c:23:31: runtime error: signed integer overflow: 69607 * 5682304
cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:23:31 in
/app/example.c:25:31: runtime error: signed integer overflow: 69607 * 391155641
cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:25:31 in
/app/example.c:27:31: runtime error: signed integer overflow: 69607 *
1373026088 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:27:31 in
/app/example.c:29:31: runtime error: signed integer overflow: 69607 * 614649169
cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:29:31 in
/app/example.c:31:31: runtime error: signed integer overflow: 69607 *
1715483472 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:31:31 in
/app/example.c:33:31: runtime error: signed integer overflow: 69607 * 977284457
cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:33:31 in
/app/example.c:35:31: runtime error: signed integer overflow: 69607 *
2147176696 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:35:31 in
/app/example.c:37:31: runtime error: signed integer overflow: 69607 *
-2038642687 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.c:37:31 in
I suspect it's the same way with `initialize_site_prn_from_seed_opt()`.</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>