Index: test/CodeGen/ms-inline-asm-memory-adjustments.c =================================================================== --- test/CodeGen/ms-inline-asm-memory-adjustments.c +++ test/CodeGen/ms-inline-asm-memory-adjustments.c @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm -target-cpu skylake-avx512 -fasm-blocks -o - | FileCheck %s + +void t() { + char c; + // CHECK: vaddps xmm1, xmm2, dword ptr $1{1to4} + __asm vaddps xmm1, xmm2, [c]{1to4} + // CHECK: vaddps xmm1, xmm2, xmmword ptr $2 + __asm vaddps xmm1, xmm2, [c] + // CHECK: mov eax, dword ptr $3 + __asm mov eax, [c] + // CHECK: mov qword ptr $0, rax + __asm mov [c], rax +} +