diff options
Diffstat (limited to 'clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c')
| -rw-r--r-- | clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c b/clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c new file mode 100644 index 000000000000..2f35e52fc0b7 --- /dev/null +++ b/clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -emit-llvm-only -triple powerpc64-ibm-aix-xcoff -verify %s +// RUN: %clang_cc1 -emit-llvm-only -triple powerpc-ibm-aix-xcoff -verify %s +// This test case exist to test marking the 'a' inline assembly constraint as +// unsupported because powerpc previously marked it as supported. +int foo(int arg){ + asm goto ("bc 12,2,%l[TEST_LABEL]" : : "a"(&&TEST_LABEL) : : TEST_LABEL); //expected-error {{invalid input constraint 'a' in asm}} + return 0; +TEST_LABEL: return arg + 1; +} |
