Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3EB2F202.8080201@idirect.com> Date: Fri, 02 May 2003 18:32:34 -0400 From: Kenn Heinrich User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: SSE2 priviliged instruction exception Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.5 required=6.5 tests=DATE_IN_PAST_03_06,USER_AGENT_MOZILLA_UA version=2.53 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Hi, I couldn't find an answer on Google, so here goes: I get a privileged instruction exception on a P4 win 2K. The same code (and more extensive use of SSE2) executes properly on a pentium 4 redhat 8 box. gcc is 3.2 WCPUID shows that my CPU is in fact a Pentium 4 with SSE2. How do I get this code to work? Thanks, - Kenn This is the test code: #include #include main() { __m128 k; k = _mm_setzero_ps(); printf("done\n"); } and compile it with gcc -march=pentium4 -msse2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/