forked from OSchip/llvm-project
ASTMerge: explicitly specify arch for GCCAsmStmt test to calm non-x86 buildbots
This should fix r282572. llvm-svn: 282578
This commit is contained in:
parent
6ef82b6754
commit
9e447e9726
|
@ -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;
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue