From patchwork Sun Aug 6 17:46:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 798424 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-459899-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="F3AybCu4"; 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 3xQSl40Gbhz9s8P for ; Mon, 7 Aug 2017 03:46:22 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=El+WkTO12+6F4KXKz1bRsdWPbBl5PMwJLCCauNFnhMUxB6 giWQ49R7gkEeqM5Cihgb+Cvwp79VBgadDyssxzDGj9ntnLo8MwrRskN1Y3utZc09 EwigJetE+Tr+wIquJ9kGO2Sqk9vZJkZ+qYqyEAhKk0zu9ulDXXXqMlem+xFdw= 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:from:date:message-id:subject:to:content-type; s= default; bh=3zWJWoXaVrQJ0y6tEJQpsolHJwQ=; b=F3AybCu4AWHsfiaZFXwZ Qy1+dL4bSk0M8JcvSNqZiR0sVDKQ9Q6Lx650V7AHbvs+UqZz/oa+qr5/Ha+2CQJq /KERn94bk/N5MUq/8A8E7MCbDjvDDf5IfShALpVWJreeNqFuOFMQfYK+/FRWhIdO G8lVqVOWoLUzzPyDQo9E9GM= Received: (qmail 85887 invoked by alias); 6 Aug 2017 17:46:11 -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 85772 invoked by uid 89); 6 Aug 2017 17:46:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-9.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:U*pinskia, HX-Envelope-From:sk:pinskia X-HELO: mail-yw0-f179.google.com Received: from mail-yw0-f179.google.com (HELO mail-yw0-f179.google.com) (209.85.161.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Aug 2017 17:46:08 +0000 Received: by mail-yw0-f179.google.com with SMTP id p68so32342061ywg.0 for ; Sun, 06 Aug 2017 10:46:08 -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=kpCbhIiYCxlfYKw8XXTpyKlfYGenpSL3qQSDVcf8ULo=; b=DSRWs7uBzD4C8Gws8I7+vksO0vGJnSZpcyKEZ00USZXHcZLQTQmhJBDuugbJP7+ZlG yTpUISBka8oFyTNcJqT7o+uNY8lmcYYZ5twhYI15iZeIcVh//PZVmKoueh/7xsCdx/aX idDeKOVRmQyGEtQD/+/wRboW+rZOZh9z/j+X674XBwklKlj997XRq/bvgPJzkN3Lpc2c SpJEno3OqZftQ0ks0vcbVV401bM0qsfZ4ujNFJSiXgab4LezdFnUf+YbZ3FuFFBWZZyg JcLXpS9TmMR/5MMGdFWApuDNbmEVsXqwP+KMdd/+LDwuASh7ekfyQh17Ie8A5l0szddI EaSw== X-Gm-Message-State: AHYfb5jSfYXU+radLKveBd6Pwr1hPWit8kNJ+fqk4GYA3sm/zisGBtwT H9Mbc+AOR91/rf6ZVuEh71uLVyvGirCQ X-Received: by 10.37.32.2 with SMTP id g2mr7065785ybg.290.1502041566475; Sun, 06 Aug 2017 10:46:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.84.85 with HTTP; Sun, 6 Aug 2017 10:46:05 -0700 (PDT) From: Andrew Pinski Date: Sun, 6 Aug 2017 10:46:05 -0700 Message-ID: Subject: [Committed] Fix gcc.target/aarch64/_Float16_*.c when supplied a -mcpu= option To: GCC Patches X-IsSubscribed: yes Hi, The gcc.target/aarch64/_Float16_*.c tests fail if we are testing with -mcpu= option which is not an armv8.2-a processor. This is because independent of the order -mcpu=/-march= options, -mcpu= overrides the -march= option. Committed as obvious after testing on aarch64-linux-gnu with "--target_board=unix/\{,-mcpu=thunderx,-mcpu=thunderx2t99,-march=armv8-a,-march=armv8.1-a,-march=armv8.2-a\}". Thanks, Andrew Pinski ChangeLog: * gcc.target/aarch64/_Float16_1.c: Skip if supplied a -mcpu= option. * gcc.target/aarch64/_Float16_2.c: Likewise * gcc.target/aarch64/_Float16_3.c: Likewise. Index: testsuite/gcc.target/aarch64/_Float16_1.c =================================================================== --- testsuite/gcc.target/aarch64/_Float16_1.c (revision 250901) +++ testsuite/gcc.target/aarch64/_Float16_1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=armv8.2-a+nofp16" } */ +/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */ #pragma GCC target ("arch=armv8.2-a+nofp16") Index: testsuite/gcc.target/aarch64/_Float16_2.c =================================================================== --- testsuite/gcc.target/aarch64/_Float16_2.c (revision 250901) +++ testsuite/gcc.target/aarch64/_Float16_2.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=armv8.2-a+nofp16 -fpermitted-flt-eval-methods=c11" } */ +/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */ #pragma GCC target ("arch=armv8.2-a+nofp16") Index: testsuite/gcc.target/aarch64/_Float16_3.c =================================================================== --- testsuite/gcc.target/aarch64/_Float16_3.c (revision 250901) +++ testsuite/gcc.target/aarch64/_Float16_3.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -march=armv8.2-a+nofp16 -std=c11 -ffp-contract=fast" } */ +/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */ #pragma GCC target ("arch=armv8.2-a+nofp16")