From patchwork Tue Jan 16 21:21:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 861891 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471423-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="gHA6w9EE"; dkim-atps=neutral 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 3zLjpW1dSrz9s74 for ; Wed, 17 Jan 2018 08:21:54 +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:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=IRxiAgcb0FSM0qwH f0MdgORuKO00QefsqfqvloV5FOpi1LRNjPsnzyZMx+tTMFJ3X3vhQd3lKknKdTy2 E2yrlkAXbdbItWdZL7cs8qDY0H8WV/ndVTcAfD0nen91B5H4nseEq/EVXt3KARim wQ5+OZhxSlyIPwas43GCB1fHxXs= 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:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=VnGUzMVT4YofHlVZtAmOZE q6Ivk=; b=gHA6w9EEl7bs3jdg67yYQ+UkfbGLKLBxG/+kuYRi4BXW57s8eSsYMp XtbHnOKauiMAU4LM8oLFktYNtDp3hJ0vIJzCnUQnLAVkCocpeYxgeXdvchJ66QsC wtJu/YNR3kpEAskpv4KyEKzUERHq2mtg1DgGlqpg/FlsdMdHqZ7X0= Received: (qmail 43936 invoked by alias); 16 Jan 2018 21:21:46 -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 43920 invoked by uid 89); 16 Jan 2018 21:21:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=bis, 3, 1 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Jan 2018 21:21:44 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 23F248139C for ; Tue, 16 Jan 2018 22:21:41 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tPhXkuC9Z60u for ; Tue, 16 Jan 2018 22:21:41 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id F29BB81368 for ; Tue, 16 Jan 2018 22:21:40 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [testsuite] Tweak patchable function tests Date: Tue, 16 Jan 2018 22:21:40 +0100 Message-ID: <7508644.36h9yNBgKv@polaris> MIME-Version: 1.0 On Visium, the compiler sometimes emits a NOP to avoid a pipeline hazard. Tested on visium-elf and x86_64-suse-linux, applied on the mainline. 2018-01-16 Eric Botcazou * c-c++-common/patchable_function_entry-decl.c: Use 3 NOPs on Visium. * c-c++-common/patchable_function_entry-default.c: Use 4 NOPs on Visium. * c-c++-common/patchable_function_entry-definition.c: Use 2 NOPs on Visium. Index: c-c++-common/patchable_function_entry-decl.c =================================================================== --- c-c++-common/patchable_function_entry-decl.c (revision 256562) +++ c-c++-common/patchable_function_entry-decl.c (working copy) @@ -1,7 +1,8 @@ /* { dg-do compile { target { ! nvptx*-*-* } } } */ /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */ -/* { dg-final { scan-assembler-times "nop" 2 { target { ! alpha*-*-* } } } } */ +/* { dg-final { scan-assembler-times "nop" 2 { target { ! { alpha*-*-* visium-*-* } } } } } */ /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */ +/* { dg-final { scan-assembler-times "nop" 3 { target visium-*-* } } } */ extern int a; Index: c-c++-common/patchable_function_entry-default.c =================================================================== --- c-c++-common/patchable_function_entry-default.c (revision 256562) +++ c-c++-common/patchable_function_entry-default.c (working copy) @@ -1,7 +1,8 @@ /* { dg-do compile { target { ! nvptx*-*-* } } } */ /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */ -/* { dg-final { scan-assembler-times "nop" 3 { target { ! alpha*-*-* } } } } */ +/* { dg-final { scan-assembler-times "nop" 3 { target { ! { alpha*-*-* visium-*-* } } } } } */ /* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */ +/* { dg-final { scan-assembler-times "nop" 4 { target visium-*-* } } } */ extern int a; Index: c-c++-common/patchable_function_entry-definition.c =================================================================== --- c-c++-common/patchable_function_entry-definition.c (revision 256562) +++ c-c++-common/patchable_function_entry-definition.c (working copy) @@ -1,7 +1,8 @@ /* { dg-do compile { target { ! nvptx*-*-* } } } */ /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */ -/* { dg-final { scan-assembler-times "nop" 1 { target { ! alpha*-*-* } } } } */ +/* { dg-final { scan-assembler-times "nop" 1 { target { ! { alpha*-*-* visium-*-* } } } } } */ /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */ +/* { dg-final { scan-assembler-times "nop" 2 { target visium-*-* } } } */ extern int a;