Skip to content

Commit fb199a1

Browse files
Update clang/test/CodeGen/X86/mmx-inline-asm-error.c
Co-authored-by: Phoebe Wang <[email protected]>
1 parent aa8cce6 commit fb199a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ typedef int vec256 __attribute__((ext_vector_type(8)));
55
vec256 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
}

0 commit comments

Comments
 (0)