From patchwork Sat Feb 10 01:30:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Munroe X-Patchwork-Id: 871603 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-472999-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="XeTYr+Jj"; 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 3zdZBn0LRlz9ryT for ; Sat, 10 Feb 2018 12:30:55 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:date:references:content-type :mime-version; q=dns; s=default; b=Aukf4xDhPUkqGdVEUZqBLfAnOcvOc 0Ao0wjmKnTKfWiXEyCfTm7D3ZHgONWaXB9MsK6a94/48yqM8OVxmC61VxeJJxLWs WcFZ5XeCmE6cSeHeZSv5PKLV0bBZY/WWJ+cg4rQ6ueOxHT1DLHCjaqI9Ha4QIi2o LkdGVvW/TvEQPA= 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 :message-id:subject:from:to:date:references:content-type :mime-version; s=default; bh=aOWlQl83g4u+khLnjdlNQ1BVYzM=; b=XeT Yr+JjG1UeVaEvowpXTtWW2IgdUK94418XmoDBgiwgjPIpR6Q+fuUiTyig0poSsa7 vaW4NMZVVDMXlFETHdMJlM/NrEidombuTZz2VfoFTFpLwoE5Bh6Z8VZnKcFwBc/G i55McyjYFsNqOo2g9EmHNKc0lVpkc0drJA2sHL9Y= Received: (qmail 103058 invoked by alias); 10 Feb 2018 01:30:48 -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 102958 invoked by uid 89); 10 Feb 2018 01:30:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-HELO: mail-it0-f49.google.com Received: from mail-it0-f49.google.com (HELO mail-it0-f49.google.com) (209.85.214.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 10 Feb 2018 01:30:17 +0000 Received: by mail-it0-f49.google.com with SMTP id c80so505114itb.4 for ; Fri, 09 Feb 2018 17:30:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:references :mime-version; bh=lpzE/jK86jvlEic6KL9fZrRpIFu/AKx9X+bUojlsMPI=; b=SYcMOUmbGPdSrYEzWeFvJicV5OgseWN14RFDQBbisUMi4ZBN8uQtAJzsZ1NDgBjFzN VJ+yQugfjVfKmyWFUBOtZGAH+Pj5mMWtKvX6+gxiMbG1OwygA45oKi4JooCUWyBl+Toz RIdjwhhPzkrrUkzlMwlByY10vSTj1uaHxd2ZNPV7tqpcJanZpey6qxqbfFluU6voZiJ6 WLrNPWgayvjhWkYocq9Bc4nK532Q0pQUV1AksOM2Pooja1eVtz3IVgY6ha70Ag2Ny3+x /NPDaN+GWoIVFzSOhH1isSpTa01qJPywWHBP1r9oN+nv090AWfncbdwjnu8DA24tH90k zb1w== X-Gm-Message-State: APf1xPBYfp4wq0m9VUcjoWhHfVFATWZRs1VavEDEKhwZeVeHOygchXwm 0vqENEdifMERMnHmlycK3DY4FA== X-Google-Smtp-Source: AH8x225BIFW9+JqFnJgdw3rC6M5Vz1n73H0RPJN+d4x2uQjiIHwnjOTIlfbzCp+lRCwMwsDrkCFt8A== X-Received: by 10.36.101.208 with SMTP id u199mr6142793itb.117.1518226206044; Fri, 09 Feb 2018 17:30:06 -0800 (PST) Received: from [192.168.1.104] (96-42-94-159.dhcp.roch.mn.charter.com. [96.42.94.159]) by smtp.googlemail.com with ESMTPSA id e21sm302113ita.28.2018.02.09.17.30.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 17:30:05 -0800 (PST) Message-ID: <1518226203.4163.15.camel@gmail.com> Subject: [Fwd: [PATCH][Bug target/84266] mmintrin.h intrinsic headers for PowerPC code fails on power9] From: Steven Munroe To: gcc-patches@gcc.gnu.org Date: Fri, 09 Feb 2018 19:30:03 -0600 References: <1518214552.4163.13.camel@gmail.com> Mime-Version: 1.0 This has a simple fix that I have tested on power8 and Seurer are tested on power9. While there may be a more elegent coding for the require casts, this is the simplest change, considering the current stage. 2018-02-09  Steven Munroe   * config/rs6000/mmintrin.h (_mm_cmpeq_pi32 [_ARCH_PWR9]): Cast vec_cmpeq result to correct type. * config/rs6000/mmintrin.h (_mm_cmpgt_pi32 [_ARCH_PWR9]): Cast vec_cmpgt result to correct type. ready to commit? Index: gcc/config/rs6000/mmintrin.h =================================================================== --- gcc/config/rs6000/mmintrin.h (revision 257533) +++ gcc/config/rs6000/mmintrin.h (working copy) @@ -854,7 +854,7 @@      a = (__vector signed int)vec_splats (__m1);    b = (__vector signed int)vec_splats (__m2); -  c = (__vector signed short)vec_cmpeq (a, b); +  c = (__vector signed int)vec_cmpeq (a, b);    return (__builtin_unpack_vector_int128 ((__vector __int128_t)c, 0));  #else    __m64_union m1, m2, res; @@ -883,7 +883,7 @@      a = (__vector signed int)vec_splats (__m1);    b = (__vector signed int)vec_splats (__m2); -  c = (__vector signed short)vec_cmpgt (a, b); +  c = (__vector signed int)vec_cmpgt (a, b);    return (__builtin_unpack_vector_int128 ((__vector __int128_t)c, 0));  #else    __m64_union m1, m2, res;