[PATCH] D113096: [X86][MS-InlineAsm] Add constraint *m for memory access w/ global var
Kan Shengchen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 3 16:58:20 PDT 2021
skan marked 3 inline comments as done.
skan 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
----------------
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?
================
Comment at: clang/test/CodeGen/ms-inline-asm-variables.c:35
}
-
----------------
pengfei wrote:
> Unrelated change.
Just delete a blank line, which is done by auto clang-format. I think it's okay.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113096/new/
https://reviews.llvm.org/D113096
More information about the cfe-commits
mailing list