[committed] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397]
Message ID | YuEOuOEX7Jg361CO@tucnak |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp297927pxt; Wed, 27 Jul 2022 03:09:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t5wMjsECYDTdGEPIXmJrg0F9fln72AzqBWUkUaXp57Rm6MyYjl8OHWLdaoZihcD/SuM9as X-Received: by 2002:a17:907:a052:b0:72b:1d92:2aaf with SMTP id gz18-20020a170907a05200b0072b1d922aafmr17360066ejc.197.1658916585001; Wed, 27 Jul 2022 03:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658916584; cv=none; d=google.com; s=arc-20160816; b=yMFAItMLCCtSyqmU3fFvKu7LzKw0tvCHSPFfz8EjJh5lW8UA65Nv/4wa8gF+8Qxc4s nWnG+rvyHW4Ho9bPOpLQJqzEl/nnhd1I7XODWRyQTNoSK33Sv3l8k09xli83fZ8h2Tbi XY6/mlf8I2xdtr6V34BqNiIOZNnPly5oQ99cXUAizlWhKtwva084l8F81EfuWTTtm5SR L9hZeZQ9aQj7RzYK9yf4avkHqtjI7U111QuKOH7RuWhqJG9MkQ1a1iyF1qD5BThl37gd 6IukdBfPSmWDc4UZ5jmEtNyqwkEQ+O+drpYAF92M3FmudFb3lTlIZwIVztVb7+4+yKVJ DqKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=HA5fzThfEaIMUNVshzqdg56KYdm+7imtArrqjMG7ljQ=; b=HRAj2w7JQWb8CoUqXG8NSDaNXL+X+YW/1mUu/Snbdc8dHT0f3c2HrG9TGBE7rOaqh1 GXuRNfSYo6yt6sBKxsMtwDR7zXeXzgOGxyO7W8PTWJnN6pkCKRV/bAHRrrYgRFgDPXgf kpsxezNc99Myfs9KFUjBVgmHLC1wGAsal7MA7a33FkMoaR5u4t4rDO7++oQy9tYjbkUP KthQnlmVFiCor81oX/MhHsFZK1zb5n+KHHf2Q5gZu6g0rku3bZNVST1HbA/8kvUC0bcG WDxL7NxsT0O8IDpW2HeH867AqxRkvbp/PhcOTV/+SAn/srUzXj4/BGLb5+z8yWlQcHpK oOfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CxCkaXV4; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o21-20020a056402439500b0043ab611258bsi12430021edc.627.2022.07.27.03.09.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 03:09:44 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CxCkaXV4; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F1E73856DC2 for <ouuuleilei@gmail.com>; Wed, 27 Jul 2022 10:09:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F1E73856DC2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1658916583; bh=HA5fzThfEaIMUNVshzqdg56KYdm+7imtArrqjMG7ljQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=CxCkaXV4y2+fb31OsoTvwpflo8YaErtt3J8ahiFd8Qm28JXDxy6IpouNbRRyPJx1G GR/tZl8Z9goNWp6L0hYyDUXtdsfIlRPnGOre4pjwElfQDh0FdUvJwnHgjKck/6VG2q QLNNgtgfxUGJcGJIXIGLacVFdG6ogtKmzBznMYQE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 317063857001 for <gcc-patches@gcc.gnu.org>; Wed, 27 Jul 2022 10:09:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 317063857001 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-232-5KFFF519PAygEd4C7ptlgA-1; Wed, 27 Jul 2022 06:08:59 -0400 X-MC-Unique: 5KFFF519PAygEd4C7ptlgA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8AD3A1C0897F for <gcc-patches@gcc.gnu.org>; Wed, 27 Jul 2022 10:08:59 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4CCC518EB7 for <gcc-patches@gcc.gnu.org>; Wed, 27 Jul 2022 10:08:59 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 26RA8uBl2208764 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Wed, 27 Jul 2022 12:08:57 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 26RA8uFo2208763 for gcc-patches@gcc.gnu.org; Wed, 27 Jul 2022 12:08:56 +0200 Date: Wed, 27 Jul 2022 12:08:56 +0200 To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397] Message-ID: <YuEOuOEX7Jg361CO@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jakub Jelinek <jakub@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1739500117493705601?= X-GMAIL-MSGID: =?utf-8?q?1739500117493705601?= |
Series |
[committed] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397]
|
|
Commit Message
Jakub Jelinek
July 27, 2022, 10:08 a.m. UTC
Hi! -fprefetch-loop-arrays isn't supported on ia32 with just -march=i386 and similar, the following patch adds extra options similar testcases use. 2022-07-27 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/106397 * gcc.dg/pr106397.c: For ia32, add dg-additional-options -march=i686 -msse. Jakub
--- gcc/testsuite/gcc.dg/pr106397.c.jj 2022-07-26 10:32:23.962268163 +0200 +++ gcc/testsuite/gcc.dg/pr106397.c 2022-07-27 10:55:49.492975896 +0200 @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fprefetch-loop-arrays --param l2-cache-size=0 --param prefetch-latency=3 -fprefetch-loop-arrays" } */ +/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ int bar (void)