From patchwork Wed Apr 18 02:01:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 899831 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-476522-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="diFGZO5M"; 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 40QljN2W8qz9s19 for ; Wed, 18 Apr 2018 12:01:43 +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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=RRgzV KBl4kUZFmEwizny+S1+vq46LACpl+xJL94U6TsmCBECHaxpr3YzSb0kAGm1/U40f imorXMkIOY3Dy01EHvEPTHgs33FrIPl3vwPOkwZlwy8JE1w6iSi+Vjt5gUFPfjTy gnCKc6Y2Kp3pIg/Q/tm7QCJzyh6JqMln7ZLrkY= 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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=oWVSPN69vJy ZwXhDVbN8WUmi5wU=; b=diFGZO5MqEoRZJIWEdvLGs10F/iFJyHHvy1UFmf6RCX 2EWNmIwRDe/2DIlOJMEhl3qE1YfWuctNgyXBo2iR8oOVv9EYRR90oldfMzOMXOu2 LYm5xZHlTDRYptbME3NXAKjAw5M1maG9TFIGzeQvFm6wJ4RLXIu/X95jnn9dFaXY = Received: (qmail 48287 invoked by alias); 18 Apr 2018 02:01:34 -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 48123 invoked by uid 89); 18 Apr 2018 02:01:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1703 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Apr 2018 02:01:32 +0000 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3I1xMu1007887 for ; Tue, 17 Apr 2018 22:01:30 -0400 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hds1pg2hw-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 17 Apr 2018 22:01:30 -0400 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Apr 2018 20:01:29 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Apr 2018 20:01:27 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3I21RCe29163642; Tue, 17 Apr 2018 19:01:27 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2FC406A03D; Tue, 17 Apr 2018 20:01:27 -0600 (MDT) Received: from BigMac.local (unknown [9.85.131.86]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id A6FB06A045; Tue, 17 Apr 2018 20:01:26 -0600 (MDT) To: GCC Patches Cc: Segher Boessenkool , David Edelsohn From: Bill Schmidt Subject: [PATCH, rs6000, committed] Fix undef-bool-* tests for older BE processors Date: Tue, 17 Apr 2018 21:01:26 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18041802-0004-0000-0000-000013F802D3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008874; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01019478; UDB=6.00520100; IPR=6.00798719; MB=3.00020626; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-18 02:01:28 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041802-0005-0000-0000-000086EDE3BF Message-Id: <69943b50-48f4-47e7-1ee7-f6deb0090c0a@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-17_13:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804180016 Hi, The new tests g++.dg/ext/undef-bool-1.C and gcc.target/powerpc/undef-bool-2.c fail on big-endian systems not configured to use VSX instructions by default. This patch allows them to run correctly on such systems by adding the -mvsx option. Tested on a Power7 configured with the default (same as --with-cpu=power4), target triple powerpc64-linux-gnu. Committed as obvious. Thanks, Bill [gcc/testsuite] 2018-04-17 Bill Schmidt * gcc.target/powerpc/undef-bool-2.c: Add -mvsx. * gcc.target/g++.dg/ext/undef-bool-1.C: Likewise. Index: gcc/testsuite/gcc.target/powerpc/undef-bool-2.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/undef-bool-2.c (revision 259455) +++ gcc/testsuite/gcc.target/powerpc/undef-bool-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -std=c11 -DNO_WARN_X86_INTRINSICS" } */ +/* { dg-options "-O2 -std=c11 -DNO_WARN_X86_INTRINSICS -mvsx" } */ /* Test to ensure that "bool" gets undef'd in xmmintrin.h when we require strict ANSI. Subsequent use of bool needs stdbool.h. Index: gcc/testsuite/g++.dg/ext/undef-bool-1.C =================================================================== --- gcc/testsuite/g++.dg/ext/undef-bool-1.C (revision 259455) +++ gcc/testsuite/g++.dg/ext/undef-bool-1.C (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile { target { powerpc*-*-* } } } */ -/* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS" } */ +/* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS -mvsx" } */ /* Test to ensure that "bool" gets undef'd in xmmintrin.h when we require strict ANSI. */