]> granicus.if.org Git - clang/commitdiff
Move target-specific Sema test to its own file.
authorJonathan Roelofs <jonathan@codesourcery.com>
Tue, 9 Jun 2015 14:30:17 +0000 (14:30 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Tue, 9 Jun 2015 14:30:17 +0000 (14:30 +0000)
Fixing the build-break introduced in r239406.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239407 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/ast-print-x86.c [new file with mode: 0644]
test/Sema/ast-print.c

diff --git a/test/Sema/ast-print-x86.c b/test/Sema/ast-print-x86.c
new file mode 100644 (file)
index 0000000..0059776
--- /dev/null
@@ -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) );
+}
index 80ae8f054ccc1957425c8d7cc4fbe087a62d2eb3..b4d76844fef780812aa45291135fb7b9f6cc721b 100644 (file)
@@ -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) );
-}