diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2014-09-18 18:17:18 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2014-09-18 18:17:18 +0000 |
commit | 974131ea8825041673a8c8dda7c42f9a9376eb17 (patch) | |
tree | 39e922e630d9141febda031d35e6786f196b4729 /clang/test/CodeGen/mmx-inline-asm-error.c | |
parent | 3e6a0be4c4531d97134daea5bd32c5564e3d34f5 (diff) | |
download | bcm5719-llvm-974131ea8825041673a8c8dda7c42f9a9376eb17.tar.gz bcm5719-llvm-974131ea8825041673a8c8dda7c42f9a9376eb17.zip |
[X86, inlineasm] Check that the output size is correct for the given constraint.
llvm-svn: 218064
Diffstat (limited to 'clang/test/CodeGen/mmx-inline-asm-error.c')
-rw-r--r-- | clang/test/CodeGen/mmx-inline-asm-error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/mmx-inline-asm-error.c b/clang/test/CodeGen/mmx-inline-asm-error.c index 9be27fac585..1e2246176a1 100644 --- a/clang/test/CodeGen/mmx-inline-asm-error.c +++ b/clang/test/CodeGen/mmx-inline-asm-error.c @@ -5,8 +5,8 @@ vec256 foo(vec256 in) { vec256 out; asm("something %0" : : "y"(in)); // expected-error {{invalid input size for constraint 'y'}} - asm("something %0" : "=y"(out)); - asm("something %0, %0" : "+y"(out)); + asm("something %0" : "=y"(out)); // expected-error {{invalid output size for constraint '=y'}} + asm("something %0, %0" : "+y"(out)); // expected-error {{invalid output size for constraint '+y'}} return out; } |