<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:octoploid@yandex.com" title="octoploid <octoploid@yandex.com>"> <span class="fn">octoploid</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Right-shift operator returns incorrect and inconsistent values"
   href="http://llvm.org/bugs/show_bug.cgi?id=19500">bug 19500</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>octoploid@yandex.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Right-shift operator returns incorrect and inconsistent values"
   href="http://llvm.org/bugs/show_bug.cgi?id=19500#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Right-shift operator returns incorrect and inconsistent values"
   href="http://llvm.org/bugs/show_bug.cgi?id=19500">bug 19500</a>
              from <span class="vcard"><a class="email" href="mailto:octoploid@yandex.com" title="octoploid <octoploid@yandex.com>"> <span class="fn">octoploid</span></a>
</span></b>
        <pre>markus@x4 tmp % clang++ -fsanitize=undefined -O2 shift.cpp
markus@x4 tmp % ./a.out
shift.cpp:26:19: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
shift.cpp:28:65: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.0/include/g++-v4/bits/ios_base.h:96:24:
runtime error: load of value 4294967221, which is not a valid value for type
'std::_Ios_Fmtflags'
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.0/include/g++-v4/bits/ios_base.h:76:67:
runtime error: load of value 4294967221, which is not a valid value for type
'std::_Ios_Fmtflags'
shift.cpp:28:189: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
Main: 48271 >> 1291394886 = 140734713298048; rx=4341504=0x1002=long:4341504;
(lx>>ix)=long:140734713298048
shift.cpp:16:19: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
shift.cpp:18:73: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
shift.cpp:18:197: runtime error: shift exponent 1291394886 is too large for
64-bit type 'long'
Test: 48271 >> 1291394886; (lx>>ix)=754; rx=754=0x2f2=long:754;
(lx>>ix)=long:754
lx (8 bits) = 48271 =  = bc8f
ix (4 bits) = 1291394886 =  = 4cf91f46</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>