summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/inline-asm-mixed-style.c
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2019-05-30 15:38:02 +0000
committerErich Keane <erich.keane@intel.com>2019-05-30 15:38:02 +0000
commitd0f34fd19850c79f8741301c3bfe0312ca24324c (patch)
treed11a14843235915243dc65478eb97f80753ceb8c /clang/test/CodeGen/inline-asm-mixed-style.c
parente6ddde57e27e03054fd0a7cd627ce7917559a690 (diff)
downloadbcm5719-llvm-d0f34fd19850c79f8741301c3bfe0312ca24324c.tar.gz
bcm5719-llvm-d0f34fd19850c79f8741301c3bfe0312ca24324c.zip
Revert "clang support gnu asm goto."
This reverts commit 954ec09aed4f2be04bb5f4e10dbb4ea8bd19ef9a. Reverting due to test failures as requested by Jennifer Yu. Conflicts: clang/test/CodeGen/asm-goto.c llvm-svn: 362106
Diffstat (limited to 'clang/test/CodeGen/inline-asm-mixed-style.c')
-rw-r--r--clang/test/CodeGen/inline-asm-mixed-style.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGen/inline-asm-mixed-style.c b/clang/test/CodeGen/inline-asm-mixed-style.c
index a9e111cd5dd..6b830d9fa7a 100644
--- a/clang/test/CodeGen/inline-asm-mixed-style.c
+++ b/clang/test/CodeGen/inline-asm-mixed-style.c
@@ -1,3 +1,4 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fasm-blocks -fsyntax-only -verify %s -DCHECK_ASM_GOTO
// RUN: %clang_cc1 -triple i386-unknown-unknown -fasm-blocks -O0 -emit-llvm -S %s -o - | FileCheck %s
// REQUIRES: x86-registered-target
@@ -19,11 +20,10 @@ void f() {
// CHECK: movl %ebx, %eax
// CHECK: movl %ecx, %edx
- __asm volatile goto ("movl %ecx, %edx");
- // CHECK: movl %ecx, %edx
+#ifdef CHECK_ASM_GOTO
+ __asm volatile goto ("movl %ecx, %edx"); // expected-error {{'asm goto' constructs are not supported yet}}
__asm mov eax, ebx
- __asm goto ("movl %ecx, %edx");
- // CHECK: movl %ebx, %eax
- // CHECK: movl %ecx, %edx
+ __asm goto ("movl %ecx, %edx"); // expected-error {{'asm goto' constructs are not supported yet}}
+#endif
}
OpenPOWER on IntegriCloud