From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 02C8F3857404 for ; Wed, 5 May 2021 14:31:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 02C8F3857404 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 145E3bFu186415 for ; Wed, 5 May 2021 10:31:52 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 38bue3ut3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 May 2021 10:31:52 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 145EPNx8022879 for ; Wed, 5 May 2021 14:31:50 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06ams.nl.ibm.com with ESMTP id 38bee58bw8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 May 2021 14:31:49 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 145EVlZv22151572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 5 May 2021 14:31:47 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 825A24C046 for ; Wed, 5 May 2021 14:31:47 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 646874C044 for ; Wed, 5 May 2021 14:31:47 +0000 (GMT) Received: from li-926bd7cc-2dd1-11b2-a85c-f6adc0f5efec.ibm.com (unknown [9.171.18.239]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS for ; Wed, 5 May 2021 14:31:47 +0000 (GMT) From: Robin Dapp Subject: [PATCH] testsuite: Add vect_floatint_cvt to gcc.dg/vect/pr56541.c To: GCC Patches Message-ID: Date: Wed, 5 May 2021 16:31:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7023FD36579E4F3448832DFB" Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 4lgbF_H4z9xySVjX1oo90qMRaUGtjB4r X-Proofpoint-GUID: 4lgbF_H4z9xySVjX1oo90qMRaUGtjB4r X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-05_07:2021-05-05, 2021-05-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 mlxlogscore=768 mlxscore=0 impostorscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2105050102 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2021 14:31:55 -0000 This is a multi-part message in MIME format. --------------7023FD36579E4F3448832DFB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, pr56541.c implicitly converts a float vector to an int (bool) vector: rMin = (rMax>0) ? rMin : rBig; It fails on some s390 targets because the do not support converting from vector float to int. Is adding a vect_floatint_cvt as in the attached patch the OK thing to do? Or better an xfail with ! vect_floatint_cvt? Regards Robin gcc/testsuite/ChangeLog: * gcc.dg/vect/pr56541.c: Add vect_floatint_cvt. --------------7023FD36579E4F3448832DFB Content-Type: text/x-patch; charset=UTF-8; name="0003-Add-vect_floatint_cvt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-Add-vect_floatint_cvt.patch" >From 4c19323b2c392923391a3c37b92054852d671c19 Mon Sep 17 00:00:00 2001 From: Robin Dapp Date: Thu, 22 Apr 2021 09:22:07 +0200 Subject: [PATCH 03/10] Add vect_floatint_cvt. --- gcc/testsuite/gcc.dg/vect/pr56541.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/vect/pr56541.c b/gcc/testsuite/gcc.dg/vect/pr56541.c index d5def6899e4..e1cee6d0b0e 100644 --- a/gcc/testsuite/gcc.dg/vect/pr56541.c +++ b/gcc/testsuite/gcc.dg/vect/pr56541.c @@ -24,4 +24,4 @@ void foo() } } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { ! vect_cond_mixed } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect_floatint_cvt } xfail { ! vect_cond_mixed } } } } */ -- 2.23.0 --------------7023FD36579E4F3448832DFB--