ASTMerge: explicitly specify arch for GCCAsmStmt test to calm non-x86 buildbots

This should fix r282572.

llvm-svn: 282578
This commit is contained in:
Aleksei Sidorin 2016-09-28 11:04:42 +00:00
parent 6ef82b6754
commit 9e447e9726
2 changed files with 18 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
}