<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks Min Chen for your reviews.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I tried your suggestion to remove one of the FP->GPR transfers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">With the following patch I do not see any improvement for the 64x routines, and the number of instructions remains the same:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">--- a/source/common/aarch64/sad-a.S<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+++ b/source/common/aarch64/sad-a.S<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">@@ -137,14 +137,14 @@<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v16.8h, v16.8h, v17.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v17.8h, v18.8h, v19.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v16.8h, v16.8h, v17.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">- uaddlv s0, v16.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">- fmov w0, s0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+ uaddlp v16.4s, v16.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v18.8h, v20.8h, v21.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v19.8h, v22.8h, v23.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> add v17.8h, v18.8h, v19.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">- uaddlv s1, v17.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">- fmov w1, s1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">- add w0, w0, w1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+ uaddlp v17.4s, v17.8h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+ add v16.4s, v16.4s, v17.4s<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+ uaddlv d0, v16.4s<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+ fmov x0, d0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ret<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">.endm<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Please see the amended patch with your recommended change.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sebastian<o:p></o:p></span></p>
</div>
</body>
</html>