From 6eef12f06f7bcdeb2a0454b9a16f82595196d153 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs Date: Tue, 9 Jun 2015 14:30:17 +0000 Subject: [PATCH] Move target-specific Sema test to its own file. Fixing the build-break introduced in r239406. llvm-svn: 239407 --- clang/test/Sema/ast-print-x86.c | 9 +++++++++ clang/test/Sema/ast-print.c | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 clang/test/Sema/ast-print-x86.c diff --git a/clang/test/Sema/ast-print-x86.c b/clang/test/Sema/ast-print-x86.c new file mode 100644 index 0000000..0059776 --- /dev/null +++ b/clang/test/Sema/ast-print-x86.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple i686-elf %s -ast-print | FileCheck %s + +// REQUIRES: x86-registered-target + +void assembly() { + int added; + // CHECK: asm volatile ("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2)); + __asm__ __volatile__("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2) ); +} diff --git a/clang/test/Sema/ast-print.c b/clang/test/Sema/ast-print.c index 80ae8f0..b4d7684 100644 --- a/clang/test/Sema/ast-print.c +++ b/clang/test/Sema/ast-print.c @@ -53,9 +53,3 @@ struct pair_t { // CHECK: struct pair_t p = {a: 3, .b = 4}; struct pair_t p = {a: 3, .b = 4}; - -void assembly() { - int added; - // CHECK: asm volatile ("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2)); - __asm__ __volatile__("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2) ); -} -- 2.7.4