From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7721 invoked by alias); 27 May 2009 05:15:34 -0000 Received: (qmail 7707 invoked by uid 22791); 27 May 2009 05:15:32 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_50,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 May 2009 05:15:28 +0000 Received: from zps77.corp.google.com (zps77.corp.google.com [172.25.146.77]) by smtp-out.google.com with ESMTP id n4R5FOr2010710; Wed, 27 May 2009 06:15:25 +0100 Received: from smtp.corp.google.com (spacemonkey1.corp.google.com [192.168.120.115]) by zps77.corp.google.com with ESMTP id n4R5FM9h031479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 May 2009 22:15:22 -0700 Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id n4R5FLwd029239 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 26 May 2009 22:15:22 -0700 To: sean darcy Cc: gcc@gcc.gnu.org Subject: Re: 4.4: march-native gives -mno-sse4, but cpuinfo sse4_1 References: From: Ian Lance Taylor Date: Wed, 27 May 2009 15:19:00 -0000 In-Reply-To: (sean darcy's message of "Wed\, 27 May 2009 01\:03\:15 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00637.txt.bz2 sean darcy writes: > If I run gcc -fverbose-asm -mtune=native -march=native -S x.c > > I get > cat x.s: > .file "x.c" > # GNU C (GCC) version 4.4.0 20090506 (Red Hat 4.4.0-4) (x86_64-redhat-linux) > # compiled by GNU C version 4.4.0 20090506 (Red Hat 4.4.0-4), GMP > version 4.2.4, MPFR version 2.4.1. > # GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > # options passed: x.c -march=core2 -mcx16 -msahf --param l1-cache-size=32 > # --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 > # -fverbose-asm > # options enabled: -falign-loops -fargument-alias > ................... > # -mfp-ret-in-387 -mfused-madd -mglibc -mieee-fp -mmmx -mno-sse4 > # -mpush-args -mred-zone -msahf -msse -msse2 -msse3 -mssse3 > ............ > > cat /proc/cpuinfo: > > flags : .....sse sse2 .... ssse3 .... sse4_1 ... > > Is this a bug in the march-native code, or is there a reason sse4.1 is > not enabled (this cpu does not support sse4.2)? This question is more appropriate for the gcc-help@gcc.gnu.org mailing list. Please take any followups to gcc-help. Thanks. In gcc, -msse4 implies both SSE4.1 and SSE4.2. Since your processor does not support both, -mno-sse4 is in effect. Actually, at present gcc does not consider any processor to support SSE4.1 or SSE4.2 by default. You always have to select them explicitly. This seems to be a bug. I would encourage you to open a bug report, if there isn't already one about this; see http://gcc.gnu.org/bugs.html . Thanks. Ian