98eaa62e36 
								
							 
						 
						
							
							
								
								Add .rgba syntax extension to ext_vector_type types  
							
							... 
							
							
							
							Summary:
This patch enables .rgba accessors to ext_vector_type types and adds
tests for syntax validation and code generation.
'a' and 'b' can appear either in the point access mode or the numeric
access mode (for indices 10 and 11).  To disambiguate between the two
usages, the accessor type is explicitly passed to relevant methods.
Reviewers: rsmith
Subscribers: Anastasia, bader, srhines, cfe-commits
Differential Revision: http://reviews.llvm.org/D20602 
llvm-svn: 276455 
							
						 
						
							2016-07-22 18:49:43 +00:00  
				
					
						
							
							
								 
						
							
								09c2213ce6 
								
							 
						 
						
							
							
								
								the call to UsualArithmeticConversions should come after the call to CheckVectorOperands on CheckConditionalOperands function. This problem caused compilation error with test17 on "test/CodeGen/ext-vector.c".  
							
							... 
							
							
							
							llvm-svn: 189773 
							
						 
						
							2013-09-02 20:32:37 +00:00  
				
					
						
							
							
								 
						
							
								0b5ca604a9 
								
							 
						 
						
							
							
								
								Added a type checking which handle the case of an ext vector and integral scalar  
							
							... 
							
							
							
							llvm-svn: 183602 
							
						 
						
							2013-06-08 02:15:36 +00:00  
				
					
						
							
							
								 
						
							
								81ce08c983 
								
							 
						 
						
							
							
								
								Add new line.  
							
							... 
							
							
							
							llvm-svn: 148255 
							
						 
						
							2012-01-16 21:15:33 +00:00  
				
					
						
							
							
								 
						
							
								20248226a9 
								
							 
						 
						
							
							
								
								Add support for OpenCL 1.1 logical operations.  
							
							... 
							
							
							
							llvm-svn: 148254 
							
						 
						
							2012-01-16 21:02:28 +00:00  
				
					
						
							
							
								 
						
							
								49b3841398 
								
							 
						 
						
							
							
								
								The comparison of two vectors should return a signed result. hasIntegerRepresentation() used to always return false for vectors, but since it was changed, it also  
							
							... 
							
							
							
							changed the return type of a compare of two unsigned vectors to be unsigned. This patch removes the check for hasIntegerRepresentation since its not needed and returns the appropriate signed type.
I added a new test case and updated exisiting test cases that assumed an unsigned result.
llvm-svn: 142250 
							
						 
						
							2011-10-17 21:00:38 +00:00  
				
					
						
							
							
								 
						
							
								409943efcb 
								
							 
						 
						
							
							
								
								Don't emit nsw flags for vector operations; there's basically no benefit, and a lot of downside (like PR9850, which is about clang's xmmintrin.h making an unexpected transformation on an expression involving _mm_add_epi32).  
							
							... 
							
							
							
							llvm-svn: 131000 
							
						 
						
							2011-05-06 18:04:18 +00:00  
				
					
						
							
							
								 
						
							
								493c34a86c 
								
							 
						 
						
							
							
								
								PR9580: Handle vectors correctly in ScalarExprEmitter::EmitRem.  
							
							... 
							
							
							
							While I'm here, FileCheck-ize the ext-vector test, so we actually check
what it is generating.
llvm-svn: 129241 
							
						 
						
							2011-04-10 04:44:11 +00:00  
				
					
						
							
							
								 
						
							
								bb333722c1 
								
							 
						 
						
							
							
								
								Add a couple more tests for coverage.  
							
							... 
							
							
							
							llvm-svn: 92430 
							
						 
						
							2010-01-02 23:21:40 +00:00  
				
					
						
							
							
								 
						
							
								9ac2b586c7 
								
							 
						 
						
							
							
								
								fix typo  
							
							... 
							
							
							
							llvm-svn: 92065 
							
						 
						
							2009-12-23 22:06:12 +00:00  
				
					
						
							
							
								 
						
							
								4e1a323b85 
								
							 
						 
						
							
							
								
								fix opencl extvector element extraction on rvalues.  We previously  
							
							... 
							
							
							
							error_unsupported on test10 and crashed on test11.
llvm-svn: 92056 
							
						 
						
							2009-12-23 21:31:11 +00:00  
				
					
						
							
							
								 
						
							
								8fbe78f6fc 
								
							 
						 
						
							
							
								
								Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.  
							
							... 
							
							
							
							- This is designed to make it obvious that %clang_cc1 is a "test variable"
   which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
   can be useful to redefine what gets run as 'clang -cc1' (for example, to set
   a default target).
llvm-svn: 91446 
							
						 
						
							2009-12-15 20:14:24 +00:00  
				
					
						
							
							
								 
						
							
								5ac69057c0 
								
							 
						 
						
							
							
								
								Make vectorized floating-point comparisons work without crashing.  
							
							... 
							
							
							
							llvm-svn: 76726 
							
						 
						
							2009-07-22 06:07:16 +00:00  
				
					
						
							
							
								 
						
							
								2a7deb64c0 
								
							 
						 
						
							
							
								
								reimplement vector comparisons as [fi]cmp+sext instead of using v[if]cmp.  
							
							... 
							
							
							
							Also, enable them in sema so that they are tested, and now that the x86 backend
has stablized.
llvm-svn: 74983 
							
						 
						
							2009-07-08 01:08:03 +00:00  
				
					
						
							
							
								 
						
							
								5d68896c7b 
								
							 
						 
						
							
							
								
								Codegen sometimes crashes on comparisons that aren't legal, just  
							
							... 
							
							
							
							disable this feature for now, to err on the side of rejecting instead
of sometimes crashing.  rdar://6326239
llvm-svn: 68088 
							
						 
						
							2009-03-31 07:46:52 +00:00  
				
					
						
							
							
								 
						
							
								a45cf5b6b0 
								
							 
						 
						
							
							
								
								Rename clang to clang-cc.  
							
							... 
							
							
							
							Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602 
							
						 
						
							2009-03-24 02:24:46 +00:00  
				
					
						
							
							
								 
						
							
								2f2bdeb5df 
								
							 
						 
						
							
							
								
								Support evaluation of vector constant expressions, and codegen of same.  
							
							... 
							
							
							
							llvm-svn: 62455 
							
						 
						
							2009-01-18 03:20:47 +00:00  
				
					
						
							
							
								 
						
							
								7e5185b264 
								
							 
						 
						
							
							
								
								A couple more vector component access fixes.  
							
							... 
							
							
							
							llvm-svn: 62443 
							
						 
						
							2009-01-18 02:01:21 +00:00  
				
					
						
							
							
								 
						
							
								610c87cad6 
								
							 
						 
						
							
							
								
								rename these tests to match the attribute.  
							
							... 
							
							
							
							llvm-svn: 61770 
							
						 
						
							2009-01-05 23:10:19 +00:00