<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p>I noticed Windows exception handler is added to ecp_nistz256-x86_64.pl. In function full_handler, when restore register contents, rbx is the first one with the smallest offset:</p>
<p><br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures; color: #cd7923">3181 </span>
<span style="font-variant-ligatures: no-common-ligatures">        mov     -8(%rax),%rbx</span></p>
<p></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures; color: #cd7923">3182 </span>
<span style="font-variant-ligatures: no-common-ligatures">        mov     -16(%rax),%rbp</span></p>
<div><span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div><font size="3">but when do push, </font>rbp<font size="3"> is always the first one push to the stack:</font><br>
</div>
<div><font size="3"><br>
</font></div>
<div>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures; color: #cd7923"> 497 </span>
<span style="font-variant-ligatures: no-common-ligatures">.Lmul_mont:</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures; color: #cd7923"> 498 </span>
<span style="font-variant-ligatures: no-common-ligatures">        push    %rbp</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures; color: #cd7923"> 499 </span>
<span style="font-variant-ligatures: no-common-ligatures">        push    %rbx</span></p>
</div>
<div><span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<p>That is, the contents of rbx is restored to rbp and the content of rbp is restored to rbx. I think it is probably a bug of the code.</p>
<p><br>
</p>
<p><br>
</p>
<p>Jun</p>
<p><br>
</p>
<div style="color: rgb(0, 0, 0);"></div>
</div>
This email and any attachments are for the sole use of the intended recipients and may be privileged or confidential. Any distribution, printing or other use by anyone else is prohibited. If you are not an intended recipient, please contact the sender immediately,
 and permanently delete this email and attachments.
</body>
</html>