From patchwork Fri Jan 30 19:49:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 435009 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 2C0861401D0 for ; Sat, 31 Jan 2015 06:50:27 +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 :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=rIABmGx25VQKID66qpIe6SPa9dOJXs8UQMPFZ9BnhegqSC OL6zl2eRnLK8FivaSID3pvh7bUNvkefD1t3c0PPeHv5BHK8CCiGWHNwzMrnqFy/V F5Ct8V/hD0waXZuHN445y7CrO+cLReHxVxjhMDQCT8JAREgfTl3Y6eK92xZu4= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=gE5aojWDlVvbr2gHJzz0l4pxDjU=; b=ajTs6vg7ZVUvX2aAYxos YYup2J2lFZcmeKqAe/P6hxUXa0GhzhRxyVPP9GoCS7gupt9tpkwDjzXy1FKoFF5C 4dnaFY+4yAq156gQKiCw0Pn9lKio/hx7j9SyP6hJtcr7h55VXyqv+nvU/UNoiRDn dLmikwTBvYknJQOLZBy+esc= Received: (qmail 21999 invoked by alias); 30 Jan 2015 19:49:06 -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 21979 invoked by uid 89); 30 Jan 2015 19:49:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS, UNWANTED_LANGUAGE_BODY autolearn=ham version=3.3.2 X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 30 Jan 2015 19:49:02 +0000 Received: by mail-oi0-f50.google.com with SMTP id h136so36349336oig.9 for ; Fri, 30 Jan 2015 11:49:00 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.141.231 with SMTP id rr7mr4779474oeb.19.1422647340210; Fri, 30 Jan 2015 11:49:00 -0800 (PST) Received: by 10.60.159.166 with HTTP; Fri, 30 Jan 2015 11:49:00 -0800 (PST) Date: Fri, 30 Jan 2015 20:49:00 +0100 Message-ID: Subject: [PATCH, i386 testsuite]: Require nonpic target for some tests From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Hello! Attached patch adds nonpic target requirement for some (obvious) cases, where data access or PIC register setup confuses scan-asms. 2015-01-30 Uros Bizjak * gcc.target/i386/fuse-caller-save-rec.c: Require nonpic target. * gcc.target/i386/fuse-caller-save-xmm.c: Ditto. * gcc.target/i386/fuse-caller-save.c: Ditto. * gcc.target/i386/headmerge-1.c: Ditto. * gcc.target/i386/headmerge-2.c: Ditto. * gcc.target/i386/sibcall-6.c: Ditto. Tested on x86_64-linux-gnu {-m32} /-fpic and committed to mainline SVN. Uros. Index: gcc.target/i386/fuse-caller-save-rec.c =================================================================== --- gcc.target/i386/fuse-caller-save-rec.c (revision 220294) +++ gcc.target/i386/fuse-caller-save-rec.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2 -fipa-ra -fomit-frame-pointer -fno-optimize-sibling-calls" } */ /* { dg-additional-options "-mregparm=1" { target ia32 } } */ Index: gcc.target/i386/fuse-caller-save-xmm.c =================================================================== --- gcc.target/i386/fuse-caller-save-xmm.c (revision 220294) +++ gcc.target/i386/fuse-caller-save-xmm.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2 -msse2 -mno-avx -fipa-ra -fomit-frame-pointer" } */ typedef double v2df __attribute__((vector_size (16))); Index: gcc.target/i386/fuse-caller-save.c =================================================================== --- gcc.target/i386/fuse-caller-save.c (revision 220294) +++ gcc.target/i386/fuse-caller-save.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2 -fipa-ra -fomit-frame-pointer" } */ /* { dg-additional-options "-mregparm=1" { target ia32 } } */ Index: gcc.target/i386/headmerge-1.c =================================================================== --- gcc.target/i386/headmerge-1.c (revision 220294) +++ gcc.target/i386/headmerge-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2" } */ /* { dg-final { scan-assembler-times "\\\$120|, 120" 1 } } */ Index: gcc.target/i386/headmerge-2.c =================================================================== --- gcc.target/i386/headmerge-2.c (revision 220294) +++ gcc.target/i386/headmerge-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2" } */ /* { dg-final { scan-assembler-times "\\\$120|, 120" 1 } } */ Index: gcc.target/i386/sibcall-6.c =================================================================== --- gcc.target/i386/sibcall-6.c (revision 220294) +++ gcc.target/i386/sibcall-6.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target ia32 } } */ +/* { dg-require-effective-target nonpic } */ /* { dg-options "-O2" } */ typedef void *ira_loop_tree_node_t;