From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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: Sat, 10 Feb 2018 01:30:00 -0000 References: <1518214552.4163.13.camel@gmail.com> Content-Type: multipart/mixed; boundary="=-wEGeZtFGb+TBfwN+Pb01" Mime-Version: 1.0 X-SW-Source: 2018-02/txt/msg00567.txt.bz2 --=-wEGeZtFGb+TBfwN+Pb01 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 0 --=-wEGeZtFGb+TBfwN+Pb01 Content-Disposition: inline Content-Description: Forwarded message - [PATCH][Bug target/84266] mmintrin.h intrinsic headers for PowerPC code fails on power9 Content-Type: message/rfc822 Content-length: 1784 Message-ID: <1518214552.4163.13.camel@gmail.com> Subject: [PATCH][Bug target/84266] mmintrin.h intrinsic headers for PowerPC code fails on power9 From: Steven Munroe To: segher@gcc.gnu.org Cc: seurer@gcc.gnu.org, wschmidt@gcc.gnu.org Date: Fri, 09 Feb 2018 16:15:52 -0600 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Content-length: 1354 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. 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; ready to commit? --=-wEGeZtFGb+TBfwN+Pb01--