xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/arm64-inline-asm.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple arm64-apple-ios7.1 -fsyntax-only -verify %s
2*0a6a1f1dSLionel Sambuc 
foo()3*0a6a1f1dSLionel Sambuc void foo() {
4*0a6a1f1dSLionel Sambuc   asm volatile("USE(%0)" :: "z"(0LL));
5*0a6a1f1dSLionel Sambuc   asm volatile("USE(%x0)" :: "z"(0LL));
6*0a6a1f1dSLionel Sambuc   asm volatile("USE(%w0)" :: "z"(0));
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc   asm volatile("USE(%0)" :: "z"(0)); // expected-warning {{value size does not match register size specified by the constraint and modifier}} expected-note {{use constraint modifier "w"}}
9*0a6a1f1dSLionel Sambuc }
10