<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:aemerson@apple.com" title="Amara Emerson <aemerson@apple.com>"> <span class="fn">Amara Emerson</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GlobalISel][AArch64] i1 value in aggregate not zero-extend prior to store"
   href="https://bugs.llvm.org/show_bug.cgi?id=37397">bug 37397</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;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GlobalISel][AArch64] i1 value in aggregate not zero-extend prior to store"
   href="https://bugs.llvm.org/show_bug.cgi?id=37397#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GlobalISel][AArch64] i1 value in aggregate not zero-extend prior to store"
   href="https://bugs.llvm.org/show_bug.cgi?id=37397">bug 37397</a>
              from <span class="vcard"><a class="email" href="mailto:aemerson@apple.com" title="Amara Emerson <aemerson@apple.com>"> <span class="fn">Amara Emerson</span></a>
</span></b>
        <pre>This is what I see with current trunk:

_i1_store:                              ; @i1_store
        .cfi_startproc
; %bb.0:                                ; %start
        sub     sp, sp, #32             ; =32
        stp     x29, x30, [sp, #16]     ; 8-byte Folded Spill
        .cfi_def_cfa_offset 32
        .cfi_offset w30, -8
        .cfi_offset w29, -16
        add     x8, sp, #8              ; =8
        str     x8, [sp]                ; 8-byte Folded Spill
        bl      _foo
                                        ; implicit-def: $x8
        mov     w9, w0
        bfxil   x8, x9, #0, #32
        mov     w9, w1
        bfi     x8, x9, #32, #1
        ubfx    x9, x8, #0, #32
        mov     w0, w9
        ubfx    x8, x8, #32, #1
        mov     w1, w8
        str     w0, [sp, #8]
        ubfx    w0, w1, #0, #1    <------- zero-extend
        ldr     x8, [sp]                ; 8-byte Folded Reload
        strb    w0, [x8, #4]
        ldp     x29, x30, [sp, #16]     ; 8-byte Folded Reload
        add     sp, sp, #32             ; =32
        ret

Since r332449 where we now split aggregates it looks like we're now doing the
right thing.</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>