[PATCH] D126024: [MSVC, ARM64] Add __readx18 intrinsics
    Stephen Long via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu May 19 15:22:57 PDT 2022
    
    
  
steplong added reviewers: hans, mstorsjo, rnk, efriedma, thakis.
steplong added a comment.
Like D126023 <https://reviews.llvm.org/D126023>, the generated assembly for MSVC is slightly different:
  MSVC                                                                          LLVM
  __readx18byte:
                            ldrb    w0, [x18, x0]                             ldrb    w0, [x18, w0, uxtw] 
  __readx18word:
                            ldrh    w0, [x18, x0]                             ldrh    w0, [x18, w0, uxtw #1]
  __readx18dword:
                            ldr     w0, [x18, x0]                             ldr     w0, [x18, w0, uxtw #2]
  __readx18qword:
                            ldr     x0, [x18, x0]                              ldr     x0, [x18, w0, uxtw #3]
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126024/new/
https://reviews.llvm.org/D126024
    
    
More information about the cfe-commits
mailing list