From: Coby Tayree Date: Tue, 4 Apr 2017 17:58:28 +0000 (+0000) Subject: [X86][inline-asm] Add support for MS 'EVEN' directive X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ddca23839bcd6316a185970fa78c2ce5813c23d;p=clang [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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299454 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/ms-inline-asm-EVEN.c b/test/CodeGen/ms-inline-asm-EVEN.c new file mode 100644 index 0000000000..b687bfe8c5 --- /dev/null +++ b/test/CodeGen/ms-inline-asm-EVEN.c @@ -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 + } +}