title: How to test if your Linux Support SSE2
body: <p>Actually I have 2 questions:</p>
  
  <ol>
  <li>Is SSE2 Compatibility a CPU issue or Compiler issue?</li>
  <li>How to check if your CPU or Compiler support SSE2?</li>
  </ol>
  
  <p>I am using GCC Version:</p>
  
  <pre><code>gcc (GCC) 4.5.1
  </code></pre>
  
  <p>When I tried to compile a code it give me this error:</p>
  
  <pre><code>$ gcc -O3 -msse2 -fno-strict-aliasing -DHAVE_SSE2=1 -DMEXP=19937 -o test-sse2-M19937 test.c
  cc1: error: unrecognized command line option "-msse2"
  </code></pre>
  
  <p>And <code>cpuinfo</code> showed this:</p>
  
  <pre><code>processor  : 0
  vendor     : GenuineIntel
  arch       : IA-64
  family     : 32
  model      : 1
  model name : Dual-Core Intel(R) Itanium(R) Processor 9140M
  revision   : 1
  archrev    : 0
  features   : branchlong, 16-byte atomic ops
  cpu number : 0
  cpu regs   : 4
  cpu MHz    : 1669.000503
  itc MHz    : 416.875000
  BogoMIPS   : 3325.95
  siblings   : 2
  physical id: 0
  core id    : 0
  thread id  : 0
  </code></pre>