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 7F05E3857BA0 for ; Tue, 21 Jun 2022 18:39:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F05E3857BA0 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25LHv20X017371 for ; Tue, 21 Jun 2022 18:39:12 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3guju696cd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Jun 2022 18:39:12 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 25LHvEdT017990 for ; Tue, 21 Jun 2022 18:39:12 GMT Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3guju696aq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jun 2022 18:39:12 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25LILQ0M011881; Tue, 21 Jun 2022 18:39:10 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma02wdc.us.ibm.com with ESMTP id 3gs6ba5pd7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jun 2022 18:39:10 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25LIdAUu17629444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Jun 2022 18:39:10 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0EA8EBE054; Tue, 21 Jun 2022 18:39:10 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E520BE051; Tue, 21 Jun 2022 18:39:09 +0000 (GMT) Received: from [9.160.110.162] (unknown [9.160.110.162]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 21 Jun 2022 18:39:09 +0000 (GMT) Message-ID: Date: Tue, 21 Jun 2022 13:39:08 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 2/5] ppc/svp64: support setvl instructions Content-Language: en-US To: Dmitry Selyutin , binutils@sourceware.org Cc: Luke Kenneth Casson Leighton , Alan Modra References: <20220617190820.452821-1-ghostmansd@gmail.com> <20220621115115.1068453-1-ghostmansd@gmail.com> <20220621115115.1068453-3-ghostmansd@gmail.com> From: Peter Bergner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: dKgBflIpGTPlWkuz-uM1GBoL2C7vpcSi X-Proofpoint-GUID: y5h2uwTPQ69goTNoRuxRNEbfUZ4hAbdR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-21_08,2022-06-21_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=855 bulkscore=0 clxscore=1015 adultscore=0 mlxscore=0 impostorscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206210075 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 18:39:14 -0000 On 6/21/22 1:25 PM, Peter Bergner via Binutils wrote: > One or more of the following files ( byte-swap-test.pl ) violates ... WT*? :-( Here it is inline. Peter #!/usr/bin/perl -w use File::Basename; use FileHandle; use strict; die "Usage: ", basename ($0), " \n" unless (@ARGV); my $file = shift (); my $fh = new FileHandle; $fh->open ($file) or die "Error opening '$file' for reading: $!\n"; print "#as: -m\n", "#objdump: -dr -M\n", "#name: tests\n"; my $found = 0; while (my $insn = <$fh>) { chomp ($insn); if ($insn =~ m/^.*:\W+file format.*/) { print ".*\n"; } elsif ($insn =~ m/^[0-9a-fA-F]+ <([^>]+)>:(.*)/) { print "0+0 <$1>:$2\n"; last; } else { $insn =~ s#\.#\\\.#g; $insn =~ s#\(#\\\(#g; $insn =~ s#\)#\\\)#g; print "$insn\n"; } } while (my $insn = <$fh>) { chomp ($insn); if ($insn =~ m/^\W*([0-9a-fA-F]+):\t([0-9a-f][0-9a-f]) ([0-9a-f][0-9a-f]) ([0-9a-f][0-9a-f]) ([0-9a-f][0-9a-f])(.*)/) { my ($offset,$b0,$b1,$b2,$b3,$end) = ($1,$2,$3,$4,$5,$6); $offset = '.*'; $end =~ s#\.#\\\.#g; $end =~ s#\(#\\\(#g; $end =~ s#\)#\\\)#g; $end =~ s#\+#\\\+#g; $end =~ s#\*#\\\*#g; $insn = sprintf ("%s:\t($b0 $b1 $b2 $b3|$b3 $b2 $b1 $b0)$end", $offset); } elsif ($insn =~ m/^\s+[0-9a-fA-F]+: R_PPC64_.*/) { $insn =~ s#R_PPC64_#R_PPC\(|64\)_#g; } print "$insn\n"; } print "#pass\n";