r299454 - [X86][inline-asm] Add support for MS 'EVEN' directive

Coby Tayree via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 4 10:58:28 PDT 2017


Author: coby
Date: Tue Apr  4 12:58:28 2017
New Revision: 299454

URL: http://llvm.org/viewvc/llvm-project?rev=299454&view=rev
Log:
[X86][inline-asm] Add support for MS 'EVEN' directive

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


Added:
    cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c   (with props)

Added: cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c?rev=299454&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c (added)
+++ cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c Tue Apr  4 12:58:28 2017
@@ -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
+  }
+}

Propchange: cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: cfe/trunk/test/CodeGen/ms-inline-asm-EVEN.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the cfe-commits mailing list