[PATCH] D26587: [X86][AVX512][InlineASM][MS][clang] (I|G)CC Memory adjustments compatibility

coby via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 20 17:01:00 PST 2016


coby updated this revision to Diff 78681.

Repository:
  rL LLVM

https://reviews.llvm.org/D26587

Files:
  test/CodeGen/ms-inline-asm-avx512-memory-adjustments.c


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]
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26587.78681.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161121/30c0fc0c/attachment.bin>


More information about the cfe-commits mailing list