[cfe-commits] r157247 - in /cfe/trunk/test: Analysis/nullptr.cpp SemaTemplate/instantiate-expr-1.cpp
Simon Atanasyan
satanasyan at mips.com
Tue May 22 04:03:10 PDT 2012
Author: atanasyan
Date: Tue May 22 06:03:10 2012
New Revision: 157247
URL: http://llvm.org/viewvc/llvm-project?rev=157247&view=rev
Log:
Replace inline asm constraint "=a" by the more general constraint "=r".
That extend a range of platforms support this test case.
Modified:
cfe/trunk/test/Analysis/nullptr.cpp
cfe/trunk/test/SemaTemplate/instantiate-expr-1.cpp
Modified: cfe/trunk/test/Analysis/nullptr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/nullptr.cpp?rev=157247&r1=157246&r2=157247&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/nullptr.cpp (original)
+++ cfe/trunk/test/Analysis/nullptr.cpp Tue May 22 06:03:10 2012
@@ -55,7 +55,7 @@
int **a = 0;
int **b = 0;
asm ("nop"
- :"=a"(*a)
+ :"=r"(*a)
:"0"(*b) // expected-warning{{Dereference of null pointer}}
);
}
Modified: cfe/trunk/test/SemaTemplate/instantiate-expr-1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/instantiate-expr-1.cpp?rev=157247&r1=157246&r2=157247&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/instantiate-expr-1.cpp (original)
+++ cfe/trunk/test/SemaTemplate/instantiate-expr-1.cpp Tue May 22 06:03:10 2012
@@ -127,7 +127,7 @@
template<typename T>
void test_asm(T t) {
- asm ("nop" : "=a"(*t) : "r"(*t)); // expected-error {{indirection requires pointer operand ('int' invalid)}}
+ asm ("nop" : "=r"(*t) : "r"(*t)); // expected-error {{indirection requires pointer operand ('int' invalid)}}
}
void test_asm() {
More information about the cfe-commits
mailing list