diff options
author | Joey Gouly <joey.gouly@gmail.com> | 2014-06-05 21:23:42 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@gmail.com> | 2014-06-05 21:23:42 +0000 |
commit | 5798b26c65abd406ff6b70e65eb1d520f5f59215 (patch) | |
tree | e8d76aaa9f1189a69c983189a088d5422e9a5cec /clang/test/CodeGen/x86-64-inline-asm.c | |
parent | 980b25840f8904934a4fb86f6af0a249e3373862 (diff) | |
download | bcm5719-llvm-5798b26c65abd406ff6b70e65eb1d520f5f59215.tar.gz bcm5719-llvm-5798b26c65abd406ff6b70e65eb1d520f5f59215.zip |
When an inline-asm diagnostic is reported by the backend, report it with the
correct severity.
Previously all inline-asm diagnostics were reported as errors.
llvm-svn: 210286
Diffstat (limited to 'clang/test/CodeGen/x86-64-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/x86-64-inline-asm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/x86-64-inline-asm.c b/clang/test/CodeGen/x86-64-inline-asm.c new file mode 100644 index 00000000000..666d4c08225 --- /dev/null +++ b/clang/test/CodeGen/x86-64-inline-asm.c @@ -0,0 +1,7 @@ +// REQUIRES: x86-registered-target +// RUN: %clang_cc1 -triple x86_64 %s -S -o /dev/null 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -triple x86_64 %s -S -o /dev/null -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-Werror +void f() { + asm("movaps %xmm3, (%esi, 2)"); // CHECK: warning: scale factor without index register is ignored + // CHECK-Werror: error: scale factor without index register is ignored +} |