blob: 73335e76cd80493a58cac31ceb62de2211ad2dec [file] [log] [blame]
Tim Northovera2ee4332014-03-29 15:09:45 +00001// RUN: %clang_cc1 -triple arm64-apple-macosx10.8.0 -fsyntax-only -verify %s
2
3unsigned t, r, *p;
4
5int foo (void) {
Akira Hatanaka987f1862014-08-22 06:05:21 +00006 __asm__ __volatile__( "stxr %w[_t], %[_r], [%[_p]]" : [_t] "=&r" (t) : [_p] "p" (p), [_r] "r" (r) : "memory"); // expected-warning{{value size does not match register size specified by the constraint and modifier}} expected-note {{use constraint modifier "w"}}
Tim Northovera2ee4332014-03-29 15:09:45 +00007 return 1;
8}