File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ typedef int vec256 __attribute__((ext_vector_type(8)));
55vec256 foo (vec256 in ) {
66 vec256 out ;
77
8- asm("something %0" : : "y" (in )); // expected-error-re {{invalid {{.*}} constraint 'y'}}
9- asm("something %0" : "=y" (out )); // expected-error-re {{invalid {{.*}} constraint '=y'}} omp-error-re {{invalid {{.*}} constraint 'y'}}
10- asm("something %0, %0" : "+y" (out )); // expected-error-re {{invalid {{.*}}}} omp-error-re {{invalid {{.*}}}}
8+ asm("something %0" : : "y" (in )); // expected-error {{invalid input size for constraint 'y'}}
9+ // omp-error@+1 {{invalid type 'vec256' (vector of 8 'int' values) in asm input for constraint 'y'}}
10+ asm("something %0" : "=y" (out )); // expected-error {{invalid output size for constraint '=y'}}
11+ // omp-error@+1 {{invalid type 'vec256' (vector of 8 'int' values) in asm input for constraint 'y'}}
12+ asm("something %0, %0" : "+y" (out )); // expected-error {{invalid output size for constraint '+y'}}
1113
1214 return out ;
1315}
You can’t perform that action at this time.
0 commit comments