From patchwork Fri Mar 13 15:38:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 1254471 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Zk9GDIK5; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48f8xv5xfSz9sPF for ; Sat, 14 Mar 2020 02:39:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A99D53AA9031; Fri, 13 Mar 2020 15:39:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A99D53AA9031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584113949; bh=ckiY04AEQBggy8nEHxO7tP9QcZAb3wQzllUjYl+Erqc=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Zk9GDIK5TZ3CvMhhjXryrBP/xZuBVx4WxFXp3EBnnACM+CCQG2L4+feRfqypcjTG/ ebQw6r78VjWuo+hpcWkg8aYpNRpbwRHYMZsac8LJkKLJ0PDy/4ukXLcC3emuga8W7n IjFTxZYoDaVDxhB8L61qUFAUBeNQnVl6AmpjrtwA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id 93F353972801 for ; Fri, 13 Mar 2020 15:39:07 +0000 (GMT) Received: by mail-il1-x132.google.com with SMTP id j69so9301528ila.11 for ; Fri, 13 Mar 2020 08:39:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ckiY04AEQBggy8nEHxO7tP9QcZAb3wQzllUjYl+Erqc=; b=BHXoeiAq5thg/LQn/ut1qiCMNAPuSfm8q801tW4CWUpGgs0Vz1TxtDfXj2f1rg6Rb3 Bky5h5EK9HVVyfhcu7pbNubGwrTRy5VeWRUPs2wHpFm58akKIdsKfSNqJDRT690FEhhI cpAeymLr16jMSIy09/1NAcXIDtJW4YcJQJ/TDTxY3gFNKupR+k/g/Mgji7mfhfShe/LR u7CRswbv8knDg4EoLcZFQy0dlrvOCmIUj9OefI7g9EkWRsn3GpWzG7Ikmd8dnrjdJI32 kSiwhSEv2ptGg8jlgU2k5dokd64yV5DoGWMWAPPbizExgsaVydoX6C8Ie05MQk/e1w8f 6trA== X-Gm-Message-State: ANhLgQ1N8AEr1UgpnbQz1j/XYS/27kpfsOLxDzvYDbzD3MkyicT40Dmk HrfzmGti/JvOedjP8XIsLhul00KtQZfPo7TTlxWqlzct X-Google-Smtp-Source: ADFU+vvboLcLZUtFXZorC1K71AtlJurP0k15lRJnBYwuEjWhoXH44E8L39BZxT5q8FDjBcrddE42tyd0AG0pPnIred0= X-Received: by 2002:a92:c702:: with SMTP id a2mr13662431ilp.128.1584113946762; Fri, 13 Mar 2020 08:39:06 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 13 Mar 2020 16:38:55 +0100 Message-ID: Subject: [commited] testsuite: Assorted x32 testsuite fixes To: "gcc-patches@gcc.gnu.org" X-Spam-Status: No, score=-27.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Uros Bizjak via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: Uros Bizjak Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" 2020-03-13 Uroš Bizjak * gcc.target/i386/pr64409.c: Do not limit compilation to x32 targets. (dg-error): Quote 'ms_abi' attribute. * gcc.target/i386/pr71958.c: Do not limit compilation to x32 targets. Require maybe_x32 effective target. (dg-options): Add -mx32. (dg-error): Quote 'ms_abi' attribute. * gcc.target/i386/pr90096.c (dg-error): Update relative location of target x32 error. Tested on x86_64-linux-gnu {,-mx32}. Uros. diff --git a/gcc/testsuite/gcc.target/i386/pr64409.c b/gcc/testsuite/gcc.target/i386/pr64409.c index 7bf9d1e398d..9df9c1817d4 100644 --- a/gcc/testsuite/gcc.target/i386/pr64409.c +++ b/gcc/testsuite/gcc.target/i386/pr64409.c @@ -1,6 +1,6 @@ -/* { dg-do compile { target x32 } } */ +/* { dg-do compile } */ /* { dg-require-effective-target maybe_x32 } */ /* { dg-options "-O0 -mx32" } */ int a; -int* __attribute__ ((ms_abi)) fn1 () { return &a; } /* { dg-error "X32 does not support ms_abi attribute" } */ +int* __attribute__ ((ms_abi)) fn1 () { return &a; } /* { dg-error "X32 does not support 'ms_abi' attribute" } */ diff --git a/gcc/testsuite/gcc.target/i386/pr71958.c b/gcc/testsuite/gcc.target/i386/pr71958.c index 5e60d1787d6..81102fc8eeb 100644 --- a/gcc/testsuite/gcc.target/i386/pr71958.c +++ b/gcc/testsuite/gcc.target/i386/pr71958.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target x32 } } */ -/* { dg-options "-mabi=ms" } */ -/* { dg-error "-mabi=ms not supported with X32 ABI" "" { target *-*-* } 0 } */ +/* { dg-do compile } */ +/* { dg-require-effective-target maybe_x32 } */ +/* { dg-options "-mx32 -mabi=ms" } */ +/* { dg-error "'-mabi=ms' not supported with X32 ABI" "" { target *-*-* } 0 } */ void main () { diff --git a/gcc/testsuite/gcc.target/i386/pr90096.c b/gcc/testsuite/gcc.target/i386/pr90096.c index fe29e3c76fe..871e0ffc691 100644 --- a/gcc/testsuite/gcc.target/i386/pr90096.c +++ b/gcc/testsuite/gcc.target/i386/pr90096.c @@ -19,6 +19,6 @@ bar (__m128 *p) { return _mm_cvtt_roundss_u64 (*p, _MM_FROUND_TO_ZERO |_MM_FROUND_NO_EXC); /* { dg-error "needs isa option -m64 -mavx512f" "" { target lp64 } .-1 } */ - /* { dg-error "needs isa option -mx32 -mavx512f" "" { target x32 } .-1 } */ + /* { dg-error "needs isa option -mx32 -mavx512f" "" { target x32 } .-2 } */ } #endif