1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify -triple x86_64-unknown-unknown -emit-llvm-only %s 2f4a2713aSLionel Sambuc typedef int vec256 __attribute__((ext_vector_type(8))); 3f4a2713aSLionel Sambuc foo(vec256 in)4f4a2713aSLionel Sambucvec256 foo(vec256 in) { 5f4a2713aSLionel Sambuc vec256 out; 6f4a2713aSLionel Sambuc 7*0a6a1f1dSLionel Sambuc asm("something %0" : : "y"(in)); // expected-error {{invalid input size for constraint 'y'}} 8*0a6a1f1dSLionel Sambuc asm("something %0" : "=y"(out)); // expected-error {{invalid output size for constraint '=y'}} 9*0a6a1f1dSLionel Sambuc asm("something %0, %0" : "+y"(out)); // expected-error {{invalid output size for constraint '+y'}} 10f4a2713aSLionel Sambuc 11f4a2713aSLionel Sambuc return out; 12f4a2713aSLionel Sambuc } 13f4a2713aSLionel Sambuc 14