diff options
Diffstat (limited to 'test/Sema/vector-assign.c')
-rw-r--r-- | test/Sema/vector-assign.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/Sema/vector-assign.c b/test/Sema/vector-assign.c index f01eb456a164..ad3406e304a7 100644 --- a/test/Sema/vector-assign.c +++ b/test/Sema/vector-assign.c @@ -12,30 +12,30 @@ void test1() { v2f v4; v4ss v5; - v1 = v2; // expected-warning {{incompatible vector types assigning to 'v2s' from 'v2u'}} - v1 = v3; // expected-error {{assigning to 'v2s' from incompatible type 'v1s'}} - v1 = v4; // expected-warning {{incompatible vector types assigning to 'v2s' from 'v2f'}} - v1 = v5; // expected-warning {{incompatible vector types assigning to 'v2s' from 'v4ss'}} + v1 = v2; // expected-warning {{incompatible vector types assigning to 'v2s' (vector of 2 'int' values) from 'v2u' (vector of 2 'unsigned int' values)}} + v1 = v3; // expected-error {{assigning to 'v2s' (vector of 2 'int' values) from incompatible type 'v1s' (vector of 1 'int' value)}} + v1 = v4; // expected-warning {{incompatible vector types assigning to 'v2s' (vector of 2 'int' values) from 'v2f' (vector of 2 'float' values)}} + v1 = v5; // expected-warning {{incompatible vector types assigning to 'v2s' (vector of 2 'int' values) from 'v4ss' (vector of 4 'short' values)}} - v2 = v1; // expected-warning {{incompatible vector types assigning to 'v2u' from 'v2s'}} - v2 = v3; // expected-error {{assigning to 'v2u' from incompatible type 'v1s'}} - v2 = v4; // expected-warning {{incompatible vector types assigning to 'v2u' from 'v2f'}} - v2 = v5; // expected-warning {{incompatible vector types assigning to 'v2u' from 'v4ss'}} + v2 = v1; // expected-warning {{incompatible vector types assigning to 'v2u' (vector of 2 'unsigned int' values) from 'v2s' (vector of 2 'int' values)}} + v2 = v3; // expected-error {{assigning to 'v2u' (vector of 2 'unsigned int' values) from incompatible type 'v1s' (vector of 1 'int' value)}} + v2 = v4; // expected-warning {{incompatible vector types assigning to 'v2u' (vector of 2 'unsigned int' values) from 'v2f' (vector of 2 'float' values)}} + v2 = v5; // expected-warning {{incompatible vector types assigning to 'v2u' (vector of 2 'unsigned int' values) from 'v4ss' (vector of 4 'short' values)}} - v3 = v1; // expected-error {{assigning to 'v1s' from incompatible type 'v2s'}} - v3 = v2; // expected-error {{assigning to 'v1s' from incompatible type 'v2u'}} - v3 = v4; // expected-error {{assigning to 'v1s' from incompatible type 'v2f'}} - v3 = v5; // expected-error {{assigning to 'v1s' from incompatible type 'v4ss'}} + v3 = v1; // expected-error {{assigning to 'v1s' (vector of 1 'int' value) from incompatible type 'v2s' (vector of 2 'int' values)}} + v3 = v2; // expected-error {{assigning to 'v1s' (vector of 1 'int' value) from incompatible type 'v2u' (vector of 2 'unsigned int' values)}} + v3 = v4; // expected-error {{assigning to 'v1s' (vector of 1 'int' value) from incompatible type 'v2f' (vector of 2 'float' values)}} + v3 = v5; // expected-error {{assigning to 'v1s' (vector of 1 'int' value) from incompatible type 'v4ss'}} - v4 = v1; // expected-warning {{incompatible vector types assigning to 'v2f' from 'v2s'}} - v4 = v2; // expected-warning {{incompatible vector types assigning to 'v2f' from 'v2u'}} - v4 = v3; // expected-error {{assigning to 'v2f' from incompatible type 'v1s'}} - v4 = v5; // expected-warning {{incompatible vector types assigning to 'v2f' from 'v4ss'}} + v4 = v1; // expected-warning {{incompatible vector types assigning to 'v2f' (vector of 2 'float' values) from 'v2s' (vector of 2 'int' values)}} + v4 = v2; // expected-warning {{incompatible vector types assigning to 'v2f' (vector of 2 'float' values) from 'v2u' (vector of 2 'unsigned int' values)}} + v4 = v3; // expected-error {{assigning to 'v2f' (vector of 2 'float' values) from incompatible type 'v1s' (vector of 1 'int' value)}} + v4 = v5; // expected-warning {{incompatible vector types assigning to 'v2f' (vector of 2 'float' values) from 'v4ss' (vector of 4 'short' values)}} - v5 = v1; // expected-warning {{incompatible vector types assigning to 'v4ss' from 'v2s'}} - v5 = v2; // expected-warning {{incompatible vector types assigning to 'v4ss' from 'v2u'}} - v5 = v3; // expected-error {{assigning to 'v4ss' from incompatible type 'v1s'}} - v5 = v4; // expected-warning {{incompatible vector types assigning to 'v4ss' from 'v2f'}} + v5 = v1; // expected-warning {{incompatible vector types assigning to 'v4ss' (vector of 4 'short' values) from 'v2s' (vector of 2 'int' values)}} + v5 = v2; // expected-warning {{incompatible vector types assigning to 'v4ss' (vector of 4 'short' values) from 'v2u' (vector of 2 'unsigned int' values)}} + v5 = v3; // expected-error {{assigning to 'v4ss' (vector of 4 'short' values) from incompatible type 'v1s' (vector of 1 'int' value)}} + v5 = v4; // expected-warning {{incompatible vector types assigning to 'v4ss' (vector of 4 'short' values) from 'v2f'}} } // PR2263 |