Index: test/CodeGen/ms-inline-asm-avx512-memory-adjustments.c =================================================================== --- test/CodeGen/ms-inline-asm-avx512-memory-adjustments.c +++ test/CodeGen/ms-inline-asm-avx512-memory-adjustments.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -emit-llvm -target-cpu skylake-avx512 -fasm-blocks -o - | FileCheck %s + +// Case1: Check integrity of inspected patch upon broadcasting +// Case2: Check integrity of inspected patch upon SIMD mem ref + +void F() { + char a; + // CHECK: vaddps xmm1, xmm2, dword ptr $0{1to4} + // CHECK: vaddps xmm1, xmm2, xmmword ptr $1 + __asm vaddps xmm1, xmm2, [a]{1to4} + __asm vaddps xmm1, xmm2, [a] +}