diff options
| author | Simon Atanasyan <satanasyan@mips.com> | 2012-05-22 11:03:10 +0000 |
|---|---|---|
| committer | Simon Atanasyan <satanasyan@mips.com> | 2012-05-22 11:03:10 +0000 |
| commit | d45982cb00f5e0df4c6feaca0c73bc7cb3cf15ac (patch) | |
| tree | 253aaeeec812af40b718d0e186de55af71382d71 /clang/test | |
| parent | 29666113fdd90a0b928d37cda214047100ccf0ac (diff) | |
| download | bcm5719-llvm-d45982cb00f5e0df4c6feaca0c73bc7cb3cf15ac.tar.gz bcm5719-llvm-d45982cb00f5e0df4c6feaca0c73bc7cb3cf15ac.zip | |
Replace inline asm constraint "=a" by the more general constraint "=r".
That extend a range of platforms support this test case.
llvm-svn: 157247
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Analysis/nullptr.cpp | 2 | ||||
| -rw-r--r-- | clang/test/SemaTemplate/instantiate-expr-1.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/nullptr.cpp b/clang/test/Analysis/nullptr.cpp index 3119b4fc390..050c3f8dc56 100644 --- a/clang/test/Analysis/nullptr.cpp +++ b/clang/test/Analysis/nullptr.cpp @@ -55,7 +55,7 @@ void zoo2() { int **a = 0; int **b = 0; asm ("nop" - :"=a"(*a) + :"=r"(*a) :"0"(*b) // expected-warning{{Dereference of null pointer}} ); } diff --git a/clang/test/SemaTemplate/instantiate-expr-1.cpp b/clang/test/SemaTemplate/instantiate-expr-1.cpp index 9395117e9ce..e7772435865 100644 --- a/clang/test/SemaTemplate/instantiate-expr-1.cpp +++ b/clang/test/SemaTemplate/instantiate-expr-1.cpp @@ -127,7 +127,7 @@ void test_call_operator(CallOperator call_op, int i, double d) { 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() { |

