[llvm-bugs] [Bug 37397] [GlobalISel][AArch64] i1 value in aggregate not zero-extend prior to store

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 23 09:37:25 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37397

Amara Emerson <aemerson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Amara Emerson <aemerson at apple.com> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180523/77bf9159/attachment.html>


More information about the llvm-bugs mailing list