http://llvm.org/bugs/show_bug.cgi?id=2523

Add some code to handle vector comparisons, which is the language side
of the llvm vicmp/vfcmp instructions.  Also make the vector-vector and
vector-scalar asign checks a bit more sane under the presence of lax vector
conversions.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53565 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/vector-assign.c b/test/Sema/vector-assign.c
index f915603..be44712 100644
--- a/test/Sema/vector-assign.c
+++ b/test/Sema/vector-assign.c
@@ -14,12 +14,12 @@
   
   v1 = v2; 
   v1 = v3; // expected-error {{incompatible type assigning 'v1s', expected 'v2s'}}
-  v1 = v4; // expected-error {{incompatible type assigning 'v2f', expected 'v2s'}}
+  v1 = v4; 
   v1 = v5;
   
   v2 = v1;
   v2 = v3; // expected-error {{incompatible type assigning 'v1s', expected 'v2u'}}
-  v2 = v4; // expected-error {{incompatible type assigning 'v2f', expected 'v2u'}}
+  v2 = v4; 
   v2 = v5;
   
   v3 = v1; // expected-error {{incompatible type assigning 'v2s', expected 'v1s'}}
@@ -27,15 +27,15 @@
   v3 = v4; // expected-error {{incompatible type assigning 'v2f', expected 'v1s'}}
   v3 = v5; // expected-error {{incompatible type assigning 'v4ss', expected 'v1s'}}
   
-  v4 = v1; // expected-error {{incompatible type assigning 'v2s', expected 'v2f'}}
-  v4 = v2; // expected-error {{incompatible type assigning 'v2u', expected 'v2f'}}
+  v4 = v1; 
+  v4 = v2; 
   v4 = v3; // expected-error {{incompatible type assigning 'v1s', expected 'v2f'}}
-  v4 = v5; // expected-error {{incompatible type assigning 'v4ss', expected 'v2f'}}
+  v4 = v5;
   
   v5 = v1;
   v5 = v2;
   v5 = v3; // expected-error {{incompatible type assigning 'v1s', expected 'v4ss'}}
-  v5 = v4; // expected-error {{incompatible type assigning 'v2f', expected 'v4ss'}}
+  v5 = v4;
 }
 
 // PR2263