From patchwork Wed Dec 4 13:26:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ragesh Radhakrishnan X-Patchwork-Id: 22023 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA3AA23FCB for ; Wed, 4 Dec 2013 13:26:26 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id jw12sf37441032veb.3 for ; Wed, 04 Dec 2013 05:26:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=3gksjZm6yLn3qp2ou8cVHdWSJzGyrhyewssNJWDjWho=; b=R3r8W8LUw2UL+6+7uglGtDvMUBOOrsHYUDwQhH+tydjOEqTKYpo6w20y0KfRO0doJn ueZSOJmlypCbE9O7M/2sSaBRd5w5vj+KoZbC36S6a647Xtkpz1biwUMBpF/Fs1qtdxIl UeDeNlrs65n8PGsa/3YN5c1cT6Zlb61cURpnyIt4ZixeezRoj+WfvyMHiDAYXkTXu3Zr CpB/q6o9BY+liBA9yvxAjTn5z9CMKx44uqJYYIpciZcEp+QRtVfj4Mcjcuukg08GsPPx DM95zlTuv5ZmYZseJM+GMwYLNas+KxQ+6tzgyVuINH+I4m9QxsNUdKUg+9fG6zA4YzKU mv0g== X-Gm-Message-State: ALoCoQntd7b3cEjrxZs0L9U4ICXZ56cZZ1fu1gg+tFmpptoBnBLJta8mO81moLYE6KU5gcczekQQ X-Received: by 10.236.220.39 with SMTP id n37mr34012874yhp.15.1386163586188; Wed, 04 Dec 2013 05:26:26 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.174 with SMTP id v14ls249980qef.74.gmail; Wed, 04 Dec 2013 05:26:26 -0800 (PST) X-Received: by 10.52.233.2 with SMTP id ts2mr579562vdc.44.1386163586057; Wed, 04 Dec 2013 05:26:26 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id x1si4409960vdo.81.2013.12.04.05.26.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 05:26:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id ht10so11446039vcb.15 for ; Wed, 04 Dec 2013 05:26:25 -0800 (PST) X-Received: by 10.220.97.69 with SMTP id k5mr560805vcn.45.1386163585662; Wed, 04 Dec 2013 05:26:25 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp291871vcz; Wed, 4 Dec 2013 05:26:25 -0800 (PST) X-Received: by 10.66.119.172 with SMTP id kv12mr80445764pab.34.1386163585016; Wed, 04 Dec 2013 05:26:25 -0800 (PST) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id hb3si54800746pac.65.2013.12.04.05.26.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 05:26:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of ragesh.r@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id p10so22252848pdj.40 for ; Wed, 04 Dec 2013 05:26:24 -0800 (PST) X-Received: by 10.68.113.130 with SMTP id iy2mr45734746pbb.2.1386163584589; Wed, 04 Dec 2013 05:26:24 -0800 (PST) Received: from ragesh-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id qf7sm157354005pac.14.2013.12.04.05.26.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 05:26:23 -0800 (PST) From: Ragesh Radhakrishnan To: patches@linaro.org Cc: Ragesh Radhakrishnan Subject: [PATCH 8/9] Add aarch64 neon support check Date: Wed, 4 Dec 2013 18:56:12 +0530 Message-Id: <1386163572-3375-1-git-send-email-ragesh.r@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ragesh.r@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add small neon code snipet to check the compiler neon support in acinclude.m4 --- acinclude.m4 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 70e2555..8ebfbc5 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -180,3 +180,36 @@ AC_DEFUN([AC_CHECK_COMPATIBLE_ARM_ASSEMBLER_IFELSE],[ $2 fi ]) + +AC_DEFUN([AC_CHECK_COMPATIBLE_ARM64_ASSEMBLER_IFELSE],[ + ac_good_gnu_arm_assembler=no + ac_save_CC="$CC" + ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CCASFLAGS -x assembler-with-cpp" + CC="$CCAS" + AC_COMPILE_IFELSE([[ + .text + movi v0.16b, #100]], ac_good_gnu_arm_assembler=yes) + + ac_use_gas_preprocessor=no + if test "x$ac_good_gnu_arm_assembler" = "xno" ; then + CC="gas-preprocessor.pl $CCAS" + AC_COMPILE_IFELSE([[ + .text + movi v0.16b, #100]], ac_use_gas_preprocessor=yes) + fi + CFLAGS="$ac_save_CFLAGS" + CC="$ac_save_CC" + + if test "x$ac_use_gas_preprocessor" = "xyes" ; then + CCAS="gas-preprocessor.pl $CCAS" + AC_SUBST([CCAS]) + ac_good_gnu_arm_assembler=yes + fi + + if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then + $1 + else + $2 + fi +])