<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 --- - likely wrong code bug"
href="http://llvm.org/bugs/show_bug.cgi?id=17179">17179</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>likely wrong code bug
</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>regehr@cs.utah.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>chenyang@cs.utah.edu, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>regehr@john-home ~/z/reduce/r110 $ clang -O small.c ; ./a.out
51
regehr@john-home ~/z/reduce/r110 $ clang -Os small.c ; ./a.out
-6568
regehr@john-home ~/z/reduce/r110 $ cat small.c
int printf(const char *, ...);
int x0, x1, x2;
int main (void) {
int x3;
for (x1 = 0; x1 != 52; x1++) {
for (x2 = 0; x2 <= 0; x2 = 1) {
int x4 = x0 ^ x1;
x3 = x4;
}
}
printf("%d\n", x3);
return 0;
}
regehr@john-home ~/z/reduce/r110 $ clang -v
clang version 3.4 (trunk 190381)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7</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>