From patchwork Mon Jul 16 22:52:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 944612 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-481667-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="WhiGNh1/"; 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 41TzFr4PGqz9s21 for ; Tue, 17 Jul 2018 08:52:45 +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; q=dns; s=default; b=v35sUAcbpK0i FqSqBuMv2ksllJ6YQTms+u+Bg0NdqKgQdWdMN2O8/UmTfdfcU1xk+tpbqhodSr3t l0RyiRcZEXZTlTAoAyXRwGHQBiiQ+fkS5pFXzKyayiw7xA77fQbCDD7OeimeYC8U 2fNmh4ZS/+hhIfBuJ5EnXv0k5irUJBQ= 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; s=default; bh=NYhHr7oS3lhMdPoWAn OeWPgx1oA=; b=WhiGNh1/3aCzS3zbdcTpBY3LqRQ2z2pkWMvdvqm+AVrHcolOEv P0ld9tymKTWVbkRItxpCYjpIf5o09jFk9RBuydoux4S5gOL74WFMlyz6+XUDHg0+ WYbWdqHrfLz+WLxzA/0MRmrRos/ov7CSoL+i0Uhbn/jRC33qnGaTCWH9E= Received: (qmail 102764 invoked by alias); 16 Jul 2018 22:52:37 -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 102750 invoked by uid 89); 16 Jul 2018 22:52:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=sk:mlong-d, sk:mlongd, our X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Jul 2018 22:52:36 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 3985D1240861; Mon, 16 Jul 2018 22:52:34 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 0/6] rs6000: Test all rs6000 floating point conversions Date: Mon, 16 Jul 2018 22:52:19 +0000 Message-Id: X-IsSubscribed: yes This series adds new codegen tests for converting any of our seven floating point modes to any of those seven. It also fixes a bunch of bugs so that these testcases pass. Tested on powerpc64-linux {-m32,-m64} (a power7); on powerpc64le-linux, both on power8 and on power9; and on AIX. Also tested the new testcases with options {-mlong-double-64,-mlong-double-128} {-mabi=ibmlongdouble,-mabi=ieeelongdouble} {-mcpu=power4,-mcpu=970,-mcpu=power6,-mcpu=power7,-mcpu=power9} {-mabi=elfv1/-mbig,-mabi=elfv2/-mlittle} {-m32,-m64} (but not -mabi=ieeelongdouble before power7 because that is not supported). Committing to trunk. Segher Segher Boessenkool (6): rs6000: Use more correct names for some trunc/extend libcalls rs6000: Use correct names for some trunc/extend libcalls rs6000: Improve truncifsf2 rs6000: Fix testsuite bug in check_ppc_float128_hw_available rs6000: New testsuite selectors rs6000: New testcase fp-convert.c gcc/config/rs6000/rs6000.c | 24 +++--- gcc/config/rs6000/rs6000.md | 23 ++---- gcc/testsuite/gcc.target/powerpc/convert-fp-128.c | 99 +++++++++++++++++++++++ gcc/testsuite/gcc.target/powerpc/convert-fp-64.c | 61 ++++++++++++++ gcc/testsuite/lib/target-supports.exp | 41 +++++++++- 5 files changed, 217 insertions(+), 31 deletions(-) create mode 100644 gcc/testsuite/gcc.target/powerpc/convert-fp-128.c create mode 100644 gcc/testsuite/gcc.target/powerpc/convert-fp-64.c