From patchwork Thu Jun 28 16:13:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 936232 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-480686-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="xYJ+E6P0"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="LKiopwVU"; 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 41GlFP3WYmz9s1B for ; Fri, 29 Jun 2018 02:13:27 +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:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=O/2 fjseHw0ZehuA/LYtMLv2sm1xk6goI6iMxwehSQerpqsq6DRQ5vBwqD/lg5X1zt75 FCi3ietkF+GRSiW+khP1pXmUbQP+9jySlXzc5D4dvsmrHpVmuZ0sVgq3HJDgw/+g EbGetPx2zLYd47h5/SG27AUG94FIH3sfBy1HC+uc= 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:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=i7N+mPjJs dvA0RmSd4oa/yKbyK0=; b=xYJ+E6P0TXFEhwtEz0z2xMsPv+OnTyaJ1ADwKU4su jX2ib4aoxYCNq5m1u7IQXEs31ZkAaJqMzDbLTyb+X/QwRMHXiskaAn+P8jzq0QgT 198sSA5yaVw2eCdsBj1B6RwkzMqpEWbgtBg211YrOirSTSaNaoI+ALvOzGlzNg9x NI= Received: (qmail 120037 invoked by alias); 28 Jun 2018 16:13:20 -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 120022 invoked by uid 89); 28 Jun 2018 16:13:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1003 X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Received: from mail-ve1eur01on0066.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (104.47.1.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Jun 2018 16:13:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wNEt4+TkOYD6QrZYqMaxD6ebMuYYxtoN7EHmVoiXw5o=; b=LKiopwVU2lBXpOKcb9bJXz+XvXSE8CcP13XmJcTRBP7BQyTpuDIv5RluoXQiTXXZreC48yGrapoOz6ZUiddmCY7m/RKutFLS+l32A50Klby0gRA8Bgi8RjLHWM+HpYZ0UevjXH8Z76iluIBeMwXnHbZkERHFml9wMhOyGVUpfFI= Received: from HE1PR08MB1035.eurprd08.prod.outlook.com (10.166.125.145) by HE1PR08MB1052.eurprd08.prod.outlook.com (10.166.125.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Thu, 28 Jun 2018 16:13:13 +0000 Received: from HE1PR08MB1035.eurprd08.prod.outlook.com ([fe80::dc65:2c61:4e8e:dd8b]) by HE1PR08MB1035.eurprd08.prod.outlook.com ([fe80::dc65:2c61:4e8e:dd8b%6]) with mapi id 15.20.0884.024; Thu, 28 Jun 2018 16:13:13 +0000 From: Wilco Dijkstra To: GCC Patches CC: nd , Christophe Lyon Subject: [COMMITTED][testsuite] Fix f16_mov_immediate_3.c Date: Thu, 28 Jun 2018 16:13:12 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) MIME-Version: 1.0 Fix and simplify the testcase so it generates dup even on latest trunk. This fixes the failure reported in: https://gcc.gnu.org/ml/gcc-patches/2018-06/msg01799.html Committed as obvious. ChangeLog: 2018-06-28 Wilco Dijkstra * gcc.target/aarch64/f16_mov_immediate_3.c: Fix testcase. diff --git a/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c b/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c index 6dc325b10b76b2a04f7081f892ce175622eaf49d..66218e3eaac95d858245d28d0c370760012d30d8 100644 --- a/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c +++ b/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c @@ -1,18 +1,11 @@ /* { dg-do compile } */ -/* { dg-options "-O0" } */ - -extern __fp16 foo (); +/* { dg-options "-O2" } */ __fp16 f4 () { - __fp16 a = 0; - __fp16 b = 1; - __fp16 c = 2; - __fp16 d = 4; + __fp16 a = 0.1; - __fp16 z = a + b; - z = z + c; - z = z - d; + __fp16 z = a * a; return z; }