[PATCH] D113096: [X86][MS-InlineAsm] Add constraint *m for memory access w/ global var
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 3 20:50:48 PDT 2021
pengfei added inline comments.
================
Comment at: clang/test/CodeGen/ms-inline-asm-static-variable.c:8
+ // CHECK: @arr = internal global [10 x i32]
+ // CHECK: call void asm sideeffect inteldialect "mov dword ptr $0[edx * $$4],edx", "=*m,{{.*}}([10 x i32]* @arr)
+ __asm mov dword ptr arr[edx*4],edx
----------------
skan wrote:
> pengfei wrote:
> > IIRC, we have limitation on the number. Can you check if it works when we have more than 10 global variables.
> sorry, which number?
`$0`. I mean if we have arr1, arr2, ..., we should have `$1`, `$2`, ... but the max number is `$9` if I remember it correctly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113096/new/
https://reviews.llvm.org/D113096
More information about the llvm-commits
mailing list