r239407 - Move target-specific Sema test to its own file.

Jonathan Roelofs jonathan at codesourcery.com
Tue Jun 9 07:30:17 PDT 2015


Author: jroelofs
Date: Tue Jun  9 09:30:17 2015
New Revision: 239407

URL: http://llvm.org/viewvc/llvm-project?rev=239407&view=rev
Log:
Move target-specific Sema test to its own file.

Fixing the build-break introduced in r239406.

Added:
    cfe/trunk/test/Sema/ast-print-x86.c
Modified:
    cfe/trunk/test/Sema/ast-print.c

Added: cfe/trunk/test/Sema/ast-print-x86.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ast-print-x86.c?rev=239407&view=auto
==============================================================================
--- cfe/trunk/test/Sema/ast-print-x86.c (added)
+++ cfe/trunk/test/Sema/ast-print-x86.c Tue Jun  9 09:30:17 2015
@@ -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) );
+}

Modified: cfe/trunk/test/Sema/ast-print.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ast-print.c?rev=239407&r1=239406&r2=239407&view=diff
==============================================================================
--- cfe/trunk/test/Sema/ast-print.c (original)
+++ cfe/trunk/test/Sema/ast-print.c Tue Jun  9 09:30:17 2015
@@ -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) );
-}





More information about the cfe-commits mailing list