r282578 - ASTMerge: explicitly specify arch for GCCAsmStmt test to calm non-x86 buildbots
Aleksei Sidorin via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 28 04:04:43 PDT 2016
Author: a.sidorin
Date: Wed Sep 28 06:04:42 2016
New Revision: 282578
URL: http://llvm.org/viewvc/llvm-project?rev=282578&view=rev
Log:
ASTMerge: explicitly specify arch for GCCAsmStmt test to calm non-x86 buildbots
This should fix r282572.
Added:
cfe/trunk/test/ASTMerge/Inputs/asm-function.cpp
cfe/trunk/test/ASTMerge/asm.cpp
Added: cfe/trunk/test/ASTMerge/Inputs/asm-function.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ASTMerge/Inputs/asm-function.cpp?rev=282578&view=auto
==============================================================================
--- cfe/trunk/test/ASTMerge/Inputs/asm-function.cpp (added)
+++ cfe/trunk/test/ASTMerge/Inputs/asm-function.cpp Wed Sep 28 06:04:42 2016
@@ -0,0 +1,11 @@
+
+unsigned char asmFunc(unsigned char a, unsigned char b) {
+ unsigned int la = a;
+ unsigned int lb = b;
+ unsigned int bigres;
+ unsigned char res;
+ __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) :
+ "edx", "cc");
+ res = bigres;
+ return res;
+}
Added: cfe/trunk/test/ASTMerge/asm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ASTMerge/asm.cpp?rev=282578&view=auto
==============================================================================
--- cfe/trunk/test/ASTMerge/asm.cpp (added)
+++ cfe/trunk/test/ASTMerge/asm.cpp Wed Sep 28 06:04:42 2016
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fcxx-exceptions -emit-pch -o %t.1.ast %S/Inputs/asm-function.cpp
+// RUN: %clang_cc1 -triple i386-unknown-unknown -fcxx-exceptions -ast-merge %t.1.ast -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+void testAsmImport() {
+ asmFunc(12, 42);
+}
More information about the cfe-commits
mailing list