From patchwork Mon Dec 1 17:27:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 416520 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D11BE14012F for ; Tue, 2 Dec 2014 04:27:22 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=QTx2dU032s+5UJNnhvAOT4CxCjcSAMerwSXKMaYdcsw2xJ bVdBVI5Bab65P9xwLWMCrn8dedjP3FTuTxQRRkhcUS4DntYrov6svNzX0IVxLtWw PNQS1beRfgjUV33WeSsvh9sFyWwKM3b28qbG/14lvvVxkOYGYwWUOe+pl4STc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=N51xmYoX9CamrNOVgR32rn+wGVk=; b=TA1ep22elhmsYlU5rdIA d53wgFRu3erNCA+yGVNLYN84EkmqLvUdOq1MS4LhwiS1e28znhjphN9dcuKntSAV g2dLuFqMiDbU9GWsVTA+QwUqBYbD7c1zYZGyt1SULCKtr+iWyKT1thFbYLc2jist /naB5IwHrEK0SYoycP8bHyw= Received: (qmail 19441 invoked by alias); 1 Dec 2014 17:27:16 -0000 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 Received: (qmail 19423 invoked by uid 89); 1 Dec 2014 17:27:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Dec 2014 17:27:13 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by service87.mimecast.com; Mon, 01 Dec 2014 17:27:11 +0000 Received: from [10.1.207.43] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Dec 2014 17:27:11 +0000 Message-ID: <547CA4EE.2050803@arm.com> Date: Mon, 01 Dec 2014 17:27:10 +0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH][AArch64][obvious] Gate fuse_adrp_add_1.c test on aarch64_small X-MC-Unique: 114120117271105901 X-IsSubscribed: yes Hi all, I noticed that this test depends on adrp+add sequences being used for constants, which only happens when the memory model used is small. If tiny or large is used then the required adrp+add sequences are not generated, making the test pointless for them. This patch guards the test on the small memory model. Before this the test failed with -mcmodel=tiny and large. Now it appears UNSUPPORTED. With -mcmodel=small (which is the default) it PASSes. Committed as obvious with r218232. Thanks, Kyrill 2014-12-01 Kyrylo Tkachov * gcc.target/aarch64/fuse_adrp_add_1.c: Gate test on aarch64_small. Index: gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c =================================================================== --- gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c (revision 218224) +++ gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target aarch64_small } */ /* { dg-options "-O3 -mcpu=cortex-a57" } */ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,