<html>
<head>
<base href="https://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 --- - Store <64 x i1> generates incorrect code"
href="https://llvm.org/bugs/show_bug.cgi?id=30615">30615</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Store <64 x i1> generates incorrect code
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>juneyoung.lee@sf.snu.ac.kr
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17401" name="attach_17401" title="Three files (two .c files and one .ll file) that show buggy behavior.">attachment 17401</a> <a href="attachment.cgi?id=17401&action=edit" title="Three files (two .c files and one .ll file) that show buggy behavior.">[details]</a></span>
Three files (two .c files and one .ll file) that show buggy behavior.
`store <64 x i1> %1, <64 x i1>* ptr` generates incorrect code.
I attach the source code. I compiled these files with
```
clang -O2 -c -o main.o main.c
clang -O2 -c -o visitelem.o visitelem.c
llc -filetype=obj -o loadval.o loadval.ll
gcc loadval.o main.o visitelem.o -o main
./main
```
Without `store <64 x i1> %1, <64 x i1>* @globalvar, align 8`, in loadval.ll, it
prints
```
visitelem : 1111
visitelem : 1111
visitelem : 0
visitelem : 0
```
However with the store it prints
```
visitelem : 0
visitelem : 0
visitelem : 0
visitelem : 0
```
even if `%ptr` and `@globalvar` points to distinct address.</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>