From patchwork Thu Sep 28 18:38:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 819717 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-463131-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="JxA5LQ26"; 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 3y33P84vnjz9tX5 for ; Fri, 29 Sep 2017 04:38:49 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=D9hh/IBST/nMSUTcy62n7XIOpv5HGR8H20pgDw5ccmf 7ApEbYuppu9+4uILo3rAx+NETSsRtnlEDgqHRnAf4t6+aTO6f3kkkKTDBGKDsZTi qi9GsgsbSQE6A6mmzPs5nPC65ZAJiD3j6Qe+sc9tww2mYg1QKuQmjrFGO6ZoCWH8 = 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=DMTvM861Gzd5G1g++kJjllSwhZg=; b=JxA5LQ26isPOla6i/ uf1md0NyUlrAEKeAl8yULLYwqspS32Ti5TG68KxJQTAym3eSiUYxvAorsr8vS3Kq kk7TqqooW0LzDuvHu5PaXEPX8PjdhL0eH8wpMlZCGOzy4SlYZXB9yzpdWxkFPrFC tulLtgHL636u1Ibciv57N0kyuc= Received: (qmail 4092 invoked by alias); 28 Sep 2017 18:38:41 -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 4077 invoked by uid 89); 28 Sep 2017 18:38:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1836 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Sep 2017 18:38:40 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37E8757C9C7 for ; Thu, 28 Sep 2017 18:38:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 37E8757C9C7 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jakub@redhat.com Received: from tucnak.zalov.cz (ovpn-116-41.ams2.redhat.com [10.36.116.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D033D179DE for ; Thu, 28 Sep 2017 18:38:38 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id v8SIcaSM010199 for ; Thu, 28 Sep 2017 20:38:36 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id v8SIcZ0F010198 for gcc-patches@gcc.gnu.org; Thu, 28 Sep 2017 20:38:35 +0200 Date: Thu, 28 Sep 2017 20:38:35 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix i386/pr82260-*.c testcases (PR target/82342) Message-ID: <20170928183835.GD1701@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes Hi! When BMI2 is on, such as for -march=haswell defaulting gcc or when make check-gcc RUNTESTFLAGS='--target_board=unix\{-m64,-m64/-march=haswell\}' etc., these testcases emit sarx which is something the testcases didn't mean to test, they want to test what kind of insn is emitted to load the shift count into the cl register for normal shift. This patch fixes it by adding -mno-bmi2. Regtested on x86_64-linux and i686-linux, committed as obvious to trunk. 2017-09-28 Jakub Jelinek PR target/82342 * gcc.target/i386/pr82260-1.c: Add -mno-bmi2 to dg-options. * gcc.target/i386/pr82260-2.c: Likewise. Jakub --- gcc/testsuite/gcc.target/i386/pr82260-1.c.jj 2017-09-21 09:26:42.000000000 +0200 +++ gcc/testsuite/gcc.target/i386/pr82260-1.c 2017-09-27 16:56:13.000000000 +0200 @@ -1,6 +1,6 @@ /* PR target/82260 */ /* { dg-do compile { target lp64 } } */ -/* { dg-options "-Os -mtune=generic -masm=att" } */ +/* { dg-options "-Os -mtune=generic -masm=att -mno-bmi2" } */ /* movl %esi, %ecx is shorter than movb %sil, %cl. While movl %edx, %ecx is the same size as movb %dl, %cl and movl %r8d, %ecx is the same size as movb %r8b, %cl, movl --- gcc/testsuite/gcc.target/i386/pr82260-2.c.jj 2017-09-21 09:26:42.000000000 +0200 +++ gcc/testsuite/gcc.target/i386/pr82260-2.c 2017-09-27 16:56:27.000000000 +0200 @@ -1,6 +1,6 @@ /* PR target/82260 */ /* { dg-do compile { target lp64 } } */ -/* { dg-options "-Os -mtune=generic -masm=att -mtune-ctrl=^partial_reg_dependency" } */ +/* { dg-options "-Os -mtune=generic -masm=att -mtune-ctrl=^partial_reg_dependency -mno-bmi2" } */ /* { dg-final { scan-assembler-not {\mmovb\t%sil, %cl} } } */ /* { dg-final { scan-assembler {\mmovl\t%esi, %ecx} } } */ /* { dg-final { scan-assembler {\mmovb\t%dl, %cl} } } */