[X86][inline-asm] Add support for MS 'EVEN' directive
authorCoby Tayree <coby.tayree@intel.com>
Tue, 4 Apr 2017 17:58:28 +0000 (17:58 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Tue, 4 Apr 2017 17:58:28 +0000 (17:58 +0000)
MS assembly syntax provide us with the 'EVEN' directive as a synonymous to at&t '.even'.
This patch include the (small, simple) changes need to allow it.

llvm-side:
https://reviews.llvm.org/D27417

Differential Revision: https://reviews.llvm.org/D27418

llvm-svn: 299454

clang/test/CodeGen/ms-inline-asm-EVEN.c [new file with mode: 0644]

diff --git a/clang/test/CodeGen/ms-inline-asm-EVEN.c b/clang/test/CodeGen/ms-inline-asm-EVEN.c
new file mode 100644 (file)
index 0000000..b687bfe
--- /dev/null
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 %s -triple i386-unknown-unknown -fasm-blocks -emit-llvm -o - | FileCheck %s
+
+// CHECK: .byte 64
+// CHECK: .byte 64
+// CHECK: .byte 64
+// CHECK:  .even
+void t1() {
+  __asm {
+    .byte 64
+    .byte 64
+    .byte 64
+    EVEN
+    mov eax, ebx
+  }
+}