title: print out the content of __m256i variable
body: <p>I am trying to print out the value of an <code>__m256i</code> variable but I get a run-time error (file.exe has stopped working!). My CPU is Intel and supports AVX instructions. When I comment the cout line, the code runs. I am using Intel C++ compiler. what is the problem? Is there any other way to show the contents of <code>__m256i</code> variable. My code is as follows:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include "immintrin.h"
  
  using namespace std;
  
  int main()
  {
      __m256i a;
      int i;
  
      a = _mm256_set_epi64x(1, 2, 3, 4);
  
      cout &lt;&lt; setfill('0'); // fill with 0s
  
      for (i = 0; i &lt; 4; i++) {
  
          cout &lt;&lt; hex &lt;&lt; setw(16) &lt;&lt; _mm256_extract_epi64(a, i);
  
      }
  
      cout &lt;&lt; endl;
  
      cin.get();
  
      return 0;
  }
  </code></pre>