From patchwork Sat Feb 25 03:53:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Turner X-Patchwork-Id: 143027 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 3B6A8B6FAA for ; Sat, 25 Feb 2012 14:54:34 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1330746874; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:Received:Received:From:To:Cc:Subject:Date: Message-Id:In-Reply-To:References:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=wBSp7nfNOc8drWVZEdA6zzSyfUI=; b=q4Bl2QASvBCsmK6 qlsG61fhfNI2YpAEpMU9Sw/j3wFGSxa6yAopRe6i1OqgK8ZE/AFwD6iiJW8+PrQ3 eMA2FCT8Vpd1zdUEWDm7G2jhyYyWsGjm5hbcrOEQ5PjLXvFirg/jAaMLP9VJ17o2 +7sX5KvWf8QCF6gCYdeAu+zd1mJQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:Received:Received:From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=HsSCJKSH09fxuDeqImABS1YKEnaI82fYwO6+hKf1uBWFPlzEW4tz+ay+s5ozEf Atdp4LNXgPqrcuyN0ToOJsO/KzJa+2/xzScMwvuggZYUpBkWOFu5mG7PVi0/Cm7H NC8NT4KL+qR0OueNb/RvgpmfUDcrD2U1fSIKWtUiZumaM=; Received: (qmail 16886 invoked by alias); 25 Feb 2012 03:54:14 -0000 Received: (qmail 16741 invoked by uid 22791); 25 Feb 2012 03:54:12 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_DZ, TW_VT, TW_ZB, TW_ZW X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Feb 2012 03:53:59 +0000 Received: by mail-yx0-f175.google.com with SMTP id r5so1521107yen.20 for ; Fri, 24 Feb 2012 19:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of mattst88@gmail.com designates 10.101.131.10 as permitted sender) client-ip=10.101.131.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mattst88@gmail.com designates 10.101.131.10 as permitted sender) smtp.mail=mattst88@gmail.com; dkim=pass header.i=mattst88@gmail.com Received: from mr.google.com ([10.101.131.10]) by 10.101.131.10 with SMTP id i10mr2825730ann.72.1330142038470 (num_hops = 1); Fri, 24 Feb 2012 19:53:58 -0800 (PST) Received: by 10.101.131.10 with SMTP id i10mr2146442ann.72.1330142038345; Fri, 24 Feb 2012 19:53:58 -0800 (PST) Received: from localhost (cpe-174-109-057-184.nc.res.rr.com. [174.109.57.184]) by mx.google.com with ESMTPS id f40sm11332696ani.16.2012.02.24.19.53.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Feb 2012 19:53:57 -0800 (PST) From: Matt Turner To: gcc-patches@gcc.gnu.org Cc: Nick Clifton , Richard Earnshaw , Paul Brook , Ramana Radhakrishnan , Matt Turner Subject: [PATCH] arm: add _mm_empty to mmintrin.h for source compatibility Date: Fri, 24 Feb 2012 22:53:35 -0500 Message-Id: <1330142015-26244-2-git-send-email-mattst88@gmail.com> In-Reply-To: <1330142015-26244-1-git-send-email-mattst88@gmail.com> References: <1330142015-26244-1-git-send-email-mattst88@gmail.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The x86/amd64 mmintrin.h provides the _mm_empty intrinsic for the 'emms' MMX instruction. Although ARM does not need such an instruction, we should provide an empty _mm_empty function nonetheless for source compatibility. 2012-02-24 Matt Turner * config/arm/mmintrin.h (_mm_empty): New. --- gcc/config/arm/mmintrin.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gcc/config/arm/mmintrin.h b/gcc/config/arm/mmintrin.h index 2cc500d..ea73bf1 100644 --- a/gcc/config/arm/mmintrin.h +++ b/gcc/config/arm/mmintrin.h @@ -32,6 +32,12 @@ typedef int __v2si __attribute__ ((vector_size (8))); typedef short __v4hi __attribute__ ((vector_size (8))); typedef char __v8qi __attribute__ ((vector_size (8))); +/* Provided for source compatibility with MMX. */ +extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) +_mm_empty (void) +{ +} + /* "Convert" __m64 and __int64 into each other. */ static __inline __m64 _mm_cvtsi64_m64 (__int64 __i) @@ -1248,6 +1254,7 @@ _m_from_int (int __a) #define _m_psadzbw _mm_sadz_pu8 #define _m_psadzwd _mm_sadz_pu16 #define _m_paligniq _mm_align_si64 +#define _m_empty _mm_empty #define _m_cvt_si2pi _mm_cvtsi64_m64 #define _m_cvt_pi2si _mm_cvtm64_si64