<div dir="ltr">Hi there,<div><br></div><div>Let's have this C code:</div><div><br></div><div><div style="line-height:19px"><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre;background-color:rgb(255,255,254)"><span style="color:rgb(0,0,255)">unsigned</span> <span style="color:rgb(0,0,255)">long</span> div(<span style="color:rgb(0,0,255)">unsigned</span> <span style="color:rgb(0,0,255)">__int128</span> n, <span style="color:rgb(0,0,255)">unsigned</span> <span style="color:rgb(0,0,255)">long</span> d)</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre;background-color:rgb(255,255,254)">{</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre;background-color:rgb(255,255,254)">    <span style="color:rgb(0,0,255)">return</span> n / d;</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre;background-color:rgb(255,255,254)">}</div><div style="color:rgb(0,0,0);font-family:"Fira Mono";font-size:14px;white-space:pre;background-color:rgb(255,255,254)"><br></div><div><span style="background-color:rgb(255,255,255)">I would assume that the divq is the perfect match here. But the compiler generates the</span></div><div><span style="background-color:rgb(255,255,255)">code that calls the </span>__udivti3 procedure which performs 128-bit by 128-bit division.</div><div><br></div><div>Why is divq not used here?</div><div><br></div><div>- Paweł</div></div></div></div>