From 7ddca23839bcd6316a185970fa78c2ce5813c23d Mon Sep 17 00:00:00 2001 From: Coby Tayree Date: Tue, 4 Apr 2017 17:58:28 +0000 Subject: [PATCH] [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 --- test/CodeGen/ms-inline-asm-EVEN.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/CodeGen/ms-inline-asm-EVEN.c 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 + } +} -- 2.50.1