<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 --- - When you use long3 type and dynamic array in one function on MIPS,it will make mistake result."
   href="http://llvm.org/bugs/show_bug.cgi?id=16434">16434</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>When you use long3 type and dynamic array in one function on MIPS,it will make mistake result.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>c.royqin@gmail.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>When you use long3 type and dynamic array in one function on MIPS,it will make
mistake result.
For example:
The following code:
#include <stdio.h>
#ifndef int64_t
typedef long long int64_t;
#endif
typedef int64_t int64_t3 _attribute_((ext_vector_type(3)));
typedef int64_t int64_t4 _attribute_((ext_vector_type(4)));
typedef int64_t3 long3;
typedef int64_t4 long4;
long3 test(int y){
int ay;
long3 tt = (long3)
{0xea3a8109867ff85e,0xc777da6f4eae68ab,0xa771ed50562ceae9}
; return tt;
}
void sample_test()
{ long3 yulei = test(1); printf("******%llx\n",yulei.s0);
printf("******%llx\n",yulei.s1); printf("******%llx\n",yulei.s2); }
int main()
{
sample_test();
return 0;
}
The Expected result is :
******ea3a8109867ff85e
******c777da6f4eae68ab
******a771ed50562ceae9
But the actual result is :
******ea3a8109867ff85e
******c777da6f4eae68ab
******c777da6f4eae68ab
It is a Clang's bug on MIPS.</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>