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

Filipe Cabecinhas <fil...@gmail.com> changed:

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

--- Comment #5 from Filipe Cabecinhas <fil...@gmail.com> ---
This has landed in r310055. New codegen for the x86_64 and armv8 cases JF
mentioned:

[llvm-cmake]% SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) ./bin/clang++
-target arm64-apple-darwin pr31777.cpp -O2 -S -fomit-frame-pointer -o - | grep
-v ...things...
__Z3fooP1U:                             ; @_Z3fooP1U
        mov     w8, #42
        str             x8, [x0]
        ret
                                        ; -- End function
__Z3barP1U:                             ; @_Z3barP1U
        mov     w8, #42
        str             x8, [x0]
        ret
                                        ; -- End function
__Z3bazP1U:                             ; @_Z3bazP1U
        mov     w8, #42
        strh            w8, [x0]
        ret
                                        ; -- End function

[llvm-cmake]% SDKROOT=$(xcrun --sdk macosx --show-sdk-path) ./bin/clang++
pr31777.cpp -O2 -S -fomit-frame-pointer -o - | grep -v ...things...
__Z3fooP1U:                             ## @_Z3fooP1U
        movq    $42, (%rdi)
        retq
                                        ## -- End function
__Z3barP1U:                             ## @_Z3barP1U
        movq    $42, (%rdi)
        retq
                                        ## -- End function
__Z3bazP1U:                             ## @_Z3bazP1U
        movw    $42, (%rdi)
        retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to