<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii">
<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:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have fixed one issue in AArch64LoadStoreOptimizer.cpp file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">e.g: have two instructions like below<o:p></o:p></p>
<p class="MsoNormal"><b>add x8, x9,x8, lsl #2<o:p></o:p></b></p>
<p class="MsoNormal"><b>ldr w1, [x8]<o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and I have merged these two instructions into one instruction like below, and I am deleting add instruction if don’t have any uses.<o:p></o:p></p>
<p class="MsoNormal"><b><span lang="FR">ldr w1, [x9,x8, lsl #2]<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal">But some llvm-test-sute tests are failing because getting difference in assembly code generation. I did bisecting with object files to find the issue.<o:p></o:p></p>
<p class="MsoNormal">In one failing test z12.c file, if I generate z12.o using z12.s of z12.c file it’s working.<o:p></o:p></p>
<p class="MsoNormal">but if I generate direct z12.o using z12.c file and it’s not working.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">so I did disassemble the both z12.o files and I have observed below differences in one ldr instruction(above merged ldr instruction).<o:p></o:p></p>
<p class="MsoNormal">F38: <b><span style="color:red">b869eb61</span></b> ldr w1, [x9, x8,
<b><span style="color:red">sxtx</span></b>] ( disassemble code of z12.o generated using z12.c).<o:p></o:p></p>
<p class="MsoNormal">F38: <b><span style="color:red">b8697b61</span></b> ldr w1, [x9, x8,
<b><span style="color:red">lsl #2</span></b>] ( disassemble code of z12.o generated using z12.s).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am getting above two differences, because of these differences test is failing.<o:p></o:p></p>
<p class="MsoNormal">Could any one please give your suggestions to fix this problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks & Regards,<o:p></o:p></p>
<p class="MsoNormal">Ramakota.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Thank you.
</body>
</html>