From patchwork Mon Aug 3 15:16:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 503224 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 90C871402D6 for ; Tue, 4 Aug 2015 01:16:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=amS5jxly; dkim-atps=neutral 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:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; q=dns; s= default; b=XhX/Hf3r5SaO6lOvRDyJQZuI4wEjiFafnuL7/xyDhD+GA3fNqcCPC m0lO3HVHHrQ+H3BrmypyV8RwPeHMNblGhBK6ZmbcP/nRHBG2fTVcZQxl9d9Wx/J/ YgrnW8JedAeS4duF0BM0bJasEDhWTDWeieoadjlYUxvfeFdxD8u6nM= 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:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=default; bh=nl01k5OvJVBvaNMwCAnrCQUr768=; b=amS5jxly6KJgkzYcD+PcNoIdB24p IVDjGb/e6bz9PhXVkavmSPKeCqEcHQJWfsVmnkFF3QkJywZD/5ay2wALaJP70dj3 qR/VvkjcQdMRZHVh+sn9UmUWgXs96bnVDmwWU6jqkZg1LRFS8yPOnYTB3b+Pfh3B JCritjlQ8AHvcq8= Received: (qmail 90673 invoked by alias); 3 Aug 2015 15:16:30 -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 90640 invoked by uid 89); 3 Aug 2015 15:16:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e33.co.us.ibm.com Received: from e33.co.us.ibm.com (HELO e33.co.us.ibm.com) (32.97.110.151) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 03 Aug 2015 15:16:27 +0000 Received: from /spool/local by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 3 Aug 2015 09:16:25 -0600 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 3 Aug 2015 09:16:23 -0600 X-MailFrom: wschmidt@linux.vnet.ibm.com X-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 6F4491FF0043 for ; Mon, 3 Aug 2015 09:07:32 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t73FFTAX50331692 for ; Mon, 3 Aug 2015 08:15:29 -0700 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t73FGLt2012983 for ; Mon, 3 Aug 2015 09:16:21 -0600 Received: from [9.49.149.153] (sig-9-49-149-153.ibm.com [9.49.149.153]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t73FGJhw012721; Mon, 3 Aug 2015 09:16:20 -0600 Message-ID: <1438614979.2838.43.camel@gnopaine> Subject: Re: [PATCH] Simplify vector compare-not-select sequence From: Bill Schmidt To: Andreas Schwab Cc: gcc-patches@gcc.gnu.org, ebotcazou@adacore.com, dje.gcc@gmail.com Date: Mon, 03 Aug 2015 10:16:19 -0500 In-Reply-To: <87d1z6f0yb.fsf@igel.home> References: <1436190062.4922.5.camel@oc8801110288.ibm.com> <87d1z6f0yb.fsf@igel.home> Mime-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15080315-0009-0000-0000-00000CF848B9 X-IsSubscribed: yes On Sun, 2015-08-02 at 12:18 +0200, Andreas Schwab wrote: > Bill Schmidt writes: > > > * gcc.target/powerpc/vec-cmp-sel.c: New test. > > FAIL: gcc.target/powerpc/vec-cmp-sel.c (test for excess errors) > Excess errors: > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:14:1: error: use of 'long long' in AltiVec types is invalid without -mvsx > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:15:3: error: use of 'long long' in AltiVec types is invalid without -mvsx > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:16:3: error: use of 'long long' in AltiVec types is invalid without -mvsx > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:17:3: error: use of 'long long' in AltiVec types is invalid without -mvsx > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:17:29: error: incompatible types when initializing type '__vector unsigned long long' using type '__vector __bool long long' > /daten/gcc/gcc-20150801/gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c:18:3: error: use of 'long long' in AltiVec types is invalid without -mvsx > > Andreas. > Hi Andreas, Can you please verify that this patch works for you? Thanks, Bill Index: gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c (revision 226505) +++ gcc/testsuite/gcc.target/powerpc/vec-cmp-sel.c (working copy) @@ -1,6 +1,7 @@ /* { dg-do compile { target powerpc64*-*-* } } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ -/* { dg-options "-maltivec -O2" } */ +/* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-options "-maltivec -O2 -mvsx -mpower8-vector" } */ /* { dg-final { scan-assembler "vcmpgtsd" } } */ /* { dg-final { scan-assembler-not "xxlnor" } } */