<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVMt22yAQ_Rq0mWMfjOKHFlrEr02z7KarHhBYIsZCBeQk_foOWIntWl2VI8saZuZyuQwjrPwoX_RZuZN1Coy1nQfCVtx4C8fWvrXAPYRGwTVob11wvIWjcq0yHqyDl_03wgrQHjgI1VbNibsjHNDTcceNUQYqe-r6oJwnbAMIDJXhbQ3StoQtA9SqVY4HBf6s4K3RRkFdVdGtEs5lMWBTgCaEzpP8mbA9PrWVwpowta5G6zf-dt_lvHn9sftF6JbQ5-G9oMNzO8ly3VamlwpIvvFBajttSL4b8554aJITbhHUO26pRZq9QMbvZL6eUToj8y3J12MR539HGItyxANIAn15L--z1XLQ4CfD84k2Kj6ELIdYwBHFwoALGsm3MyS_jl8bNCL8YLN1egq4y44jpWqNcdsbHvferg1dCqAPAdI-Qt4lpryE8JAbx4CN5GKYHo9Bdnj6GMBG_Ze1rgvBBGZXRVPdIEDeOV6fOFZjw39zJx9xbsU8IloEQ2YRK9qbTx2StT2ii8Gopl_EB93HSMcRK0hjcSTq0ThGY5Lq5ggQy4Y9p_nJ7MaTOF19n-bYKmS5vZ_EieHC4U6T4DsaN3GXfZN1nXQq9O6mUj9jxu9aemeyzGWRFzzjfWisK88HeThkvTPlX9dah6YXU-waaBhz_vybdM6-qgpPYa-97xW2k_08z4tV1pQFZ_lKFDNaCSELKiVjStCqWC4UWwpWZYYLbFglSkQYa9UbJAj8RrGy_2egS0YZozM2p8t8RldTulg8CWR1WMm8qERFnqg6cW2mESd2rMyVCVL0tUen0T74q5N7r-tWqUQYGQYdTDKwR8bDjw3yq28KFbCNYJvFdhUabM-X_iq4V2DRsq3UQdsWu_EHeGVwB2hlaQtl4v8H5xawlw>53398</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [sve] gcc generate better code than clang base on conditionally selection
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vfdff
      </td>
    </tr>
</table>

<pre>
    Livermore loops (also known as the Livermore Fortran kernels or LFK) is a benchmark for parallel computers, now clang don't generate sve while gcc done for kernel 2.  https://godbolt.org/z/ETd5hjYEq

```

#include <stdio.h>
#include <math.h> 

extern double x[1001];
extern double v[1001];
extern long loop, n;

void kernel_2(void)
{
    for (long l=1 ; l<=loop ; l++) {
        long ii = n;
        long ipntp = 0;
        do {
            long ipnt = ipntp;
            ipntp += ii;
            ii /= 2;
            long i = ipntp - 1;
// #pragma nohazard
            for (long k=ipnt+1; k<ipntp ; k=k+2 ) {
                i++;
                x[i] = x[k] - v[k  ]*x[k-1] - v[k+1]*x[k+1];
            }
        } while ( ii>0 );
    }
  
    return;
}
```



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1VMuWoyAQ_Rrc1EmOQue1cJHnZno5m1nNQUWlQ8ABTD--fgpiOsnE4Rjjpaoul6KowlSf-as8C3syVoAypnNA6JIrZ-CozbsG7sC3Am5OB2O95RqOwmqhHBgLr4cfhK5AOuBQCF22J26PUKOl45YrJRSU5tT1XlhH6BaQGErFdQOV0YQuPDRCC8u9AHcW8N5KJaApy2AWkeeyGNApQOt95whbE3rApzFVYZSfGtsg-sLf_mc1a99-7f-QdEfS9fCep8NzP0mZ1KXqKwGEbZ2vpJm2hO3HrCfu22iEewbxgVvSKLMvUPEHmW2yNM3IbEfYZszj_H8PZTAd4QBigr6tl_fZyGrIwW-K5xMwZnxwWQy-gCMkCx0ubITtMhS_CV9bBIF-wHQTnxU8RIcRQ6VEv92djkdrp30XHdInh8o8Uz4ExrjI8BQbxsCN4oKbHPdBdXj66EBH7Ze1bgvBBLJbRmPdIAHrLG9OHKux5V_cVs8898k8IlsgQ2WBK-DtNQ8R7Y5oojCa02_hQ97HRIcRKkhicUTpARwDmMS6OQKEsqHrOD_J7ixR0812hWOrkMXucRInhguHO40J36dhEw_Rd1G3SSt8b-8q9eozftfiO6lyVq3YiideeiVyVIsXPuwk3PbvJlAIj3cCewbePd9ir7k0i4I7AQaR0ZX00mhsLZ_ghBJlQElvVf5Pd5C-7YspNh8ESp2vf5POmjeMQiid6wV2pcOMsdUyafO6qmfzui4zXiwXongpVuViWS1qNmNZXYuXRPEC-17QTijV4h0iBX7jPhKZ05TSNKOzdMGydDlN53Ok4LReVmxVFiV5ScWJSzUNOkLbSmweJRV949CopPPuZuTOyUaLmKrAz3vfGpufUWWdxIXzKPwvKdKbyw">