<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:paulsson@linux.vnet.ibm.com" title="Jonas Paulsson <paulsson@linux.vnet.ibm.com>"> <span class="fn">Jonas Paulsson</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [SystemZ] Backend emits an STRL to an unaligned address"
   href="https://bugs.llvm.org/show_bug.cgi?id=44405">bug 44405</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>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [SystemZ] Backend emits an STRL to an unaligned address"
   href="https://bugs.llvm.org/show_bug.cgi?id=44405#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [SystemZ] Backend emits an STRL to an unaligned address"
   href="https://bugs.llvm.org/show_bug.cgi?id=44405">bug 44405</a>
              from <span class="vcard"><a class="email" href="mailto:paulsson@linux.vnet.ibm.com" title="Jonas Paulsson <paulsson@linux.vnet.ibm.com>"> <span class="fn">Jonas Paulsson</span></a>
</span></b>
        <pre>(In reply to Eli Friedman from <a href="show_bug.cgi?id=44405#c1">comment #1</a>)
<span class="quote">> You're performing a store with align 4 to an unaligned variable.

> (Implicit alignment in IR is confusing, useless historical artifact; we
> should get rid of it, but I haven't had time.)</span >

I am not sure I follow your reasoning:

- This is not affected by adding explicit alignments on the variable and the
store.

- Since this is the second element of the struct, lying after an i16, it will
never be guaranteed to be aligned at 4 bytes.

- The STRL instruction demands a 4 byte alignment. Therefore, I think the
backend should emit an MVHI instead, which does not have this requirement (if
the first element is changed to be an i8, the MVHI is produced).</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>