]> granicus.if.org Git - clang/commitdiff
Fix test case.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 18 Sep 2014 00:29:04 +0000 (00:29 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 18 Sep 2014 00:29:04 +0000 (00:29 +0000)
This is another follow-up patch to r217996.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218003 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/mmx-inline-asm-error.c

index e9a2800671ff40c964406dba2549cd9de4ba6342..9be27fac58541bb2387ab921e4f2f1b9228cbde8 100644 (file)
@@ -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)); // expected-error {{invalid type 'vec256' (vector of 8 'int' values) in asm input for constraint 'y'}}
-  asm("something %0, %0" : "+y"(out)); // expected-error {{invalid type 'vec256' (vector of 8 'int' values) in asm input for constraint 'y'}}
+  asm("something %0" : "=y"(out));
+  asm("something %0, %0" : "+y"(out));
 
   return out;
 }