From patchwork Wed Oct 29 13:22:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 39773 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A76F124046 for ; Wed, 29 Oct 2014 13:23:56 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf1926528eek.10 for ; Wed, 29 Oct 2014 06:23:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:content-type; bh=2n9W3mBrfKv9h7eW0f2tTcWts5mc7N6Rb9GZbnHwdTQ=; b=Y+yv6osg3ZSK7TQlc8f7Ryo7hMhb1/4TDVxPO6N3cFiQweE2f/D0PPaWSnSEcr15wh FfN/TDHk12fCGqZ/8/r4xhqlFb3IZvHzWT9pHiACRwcotoJUIycZI21l3cXiYDFjanM2 2IfptUex1XqB5WrWs31zfmcO1PjyqiRRISjb6cFAp3qYl0w06Tk0/FDTwJKAVmWuLS1L UtTZaIxGL3e3Acoo9svk8mDU+l3MmxK8x8f9mm/dc4VRz+ViHBzQ3MzH0QYKfG/xg2oq 6xfVMG1zz1pfkL1Ox4dFQ61La+PjGsNDeqQAMO9DyAiC2YgayZPBFZBzl2JNFHEq61OO V4Xg== X-Gm-Message-State: ALoCoQldVexbg3rlxIqdyLkjDlW6NYBaBwZzQ3fqEWdcy3HewELTB1PBcLSRHoAaoDlPWlafAcic X-Received: by 10.152.25.202 with SMTP id e10mr1765550lag.2.1414589035562; Wed, 29 Oct 2014 06:23:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.133 with SMTP id am5ls212370lac.54.gmail; Wed, 29 Oct 2014 06:23:55 -0700 (PDT) X-Received: by 10.112.199.40 with SMTP id jh8mr5270627lbc.5.1414589034983; Wed, 29 Oct 2014 06:23:54 -0700 (PDT) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com. [2a00:1450:4010:c03::22b]) by mx.google.com with ESMTPS id vr4si7165593lbb.110.2014.10.29.06.23.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 06:23:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22b as permitted sender) client-ip=2a00:1450:4010:c03::22b; Received: by mail-la0-f43.google.com with SMTP id ge10so2532423lab.16 for ; Wed, 29 Oct 2014 06:23:54 -0700 (PDT) X-Received: by 10.152.6.228 with SMTP id e4mr11336676laa.71.1414589034842; Wed, 29 Oct 2014 06:23:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp655959lbz; Wed, 29 Oct 2014 06:23:53 -0700 (PDT) X-Received: by 10.66.154.111 with SMTP id vn15mr994593pab.155.1414589032438; Wed, 29 Oct 2014 06:23:52 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id ar4si4096081pbc.2.2014.10.29.06.23.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 06:23:52 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-382294-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 25265 invoked by alias); 29 Oct 2014 13:23:05 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 Received: (qmail 25191 invoked by uid 89); 29 Oct 2014 13:23:04 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f42.google.com Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com) (209.85.192.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 29 Oct 2014 13:23:02 +0000 Received: by mail-qg0-f42.google.com with SMTP id i50so1264242qgf.15 for ; Wed, 29 Oct 2014 06:23:00 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.22.165 with SMTP id 34mr14899165qgn.16.1414588980188; Wed, 29 Oct 2014 06:23:00 -0700 (PDT) Received: by 10.140.86.114 with HTTP; Wed, 29 Oct 2014 06:22:59 -0700 (PDT) Date: Wed, 29 Oct 2014 14:22:59 +0100 Message-ID: Subject: [Patch, testsuite] [AArch64,ARM] support bswap tests on aarch64_be From: Christophe Lyon To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes X-Original-Sender: christophe.lyon@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22b as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi, Following discussions after Thomas's patches improving bswap support https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01279.html I noticed that: * the associated tests weren't executed on aarch64_be * ARM targets older than v6 do not support the needed instructions. The attached patch changes check_effective_target_bswap(): - accept aarch64*-*-* instead of aarch64-*-* - when target is arm*-*-*, check __ARM_ARCH >= 6 2014-10-29 Christophe Lyon * lib/target-supports.exp (check_effective_target_bswap): Update conditions for AArch64 and ARM targets. OK? Christophe. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4398345..80ff52d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4892,9 +4892,8 @@ proc check_effective_target_bswap { } { verbose "check_effective_target_bswap: using cached result" 2 } else { set et_bswap_saved 0 - if { [istarget aarch64-*-*] + if { [istarget aarch64*-*-*] || [istarget alpha*-*-*] - || [istarget arm*-*-*] || [istarget i?86-*-*] || [istarget m68k-*-*] || [istarget powerpc*-*-*] @@ -4902,6 +4901,16 @@ proc check_effective_target_bswap { } { || [istarget s390*-*-*] || [istarget x86_64-*-*] } { set et_bswap_saved 1 + } else { + if { [istarget arm*-*-*] + && [check_no_compiler_messages_nocache arm_v6_or_later object { + #if __ARM_ARCH < 6 + #error not armv6 or later + #endif + int i; + } ""] } { + set et_bswap_saved 1 + } } }