forked from OSchip/llvm-project
				
			[Hexagon] Higher versions of HVX imply presence of lower versions
The code in Hexagon_MC::completeHVXFeatures wasn't setting all HVX- related features correctly. llvm-svn: 321008
This commit is contained in:
		
							parent
							
								
									422a380a3e
								
							
						
					
					
						commit
						eba8c0c61b
					
				| 
						 | 
					@ -363,14 +363,14 @@ FeatureBitset Hexagon_MC::completeHVXFeatures(const FeatureBitset &S) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // HasHvxVer is false, and UseHvx is true.
 | 
					  // HasHvxVer is false, and UseHvx is true.
 | 
				
			||||||
  switch (CpuArch) {
 | 
					  switch (CpuArch) {
 | 
				
			||||||
    case ArchV60:
 | 
					 | 
				
			||||||
      FB.set(ExtensionHVXV60);
 | 
					 | 
				
			||||||
      break;
 | 
					 | 
				
			||||||
    case ArchV62:
 | 
					 | 
				
			||||||
      FB.set(ExtensionHVXV62);
 | 
					 | 
				
			||||||
      break;
 | 
					 | 
				
			||||||
    case ArchV65:
 | 
					    case ArchV65:
 | 
				
			||||||
      FB.set(ExtensionHVXV65);
 | 
					      FB.set(ExtensionHVXV65);
 | 
				
			||||||
 | 
					      LLVM_FALLTHROUGH;
 | 
				
			||||||
 | 
					    case ArchV62:
 | 
				
			||||||
 | 
					      FB.set(ExtensionHVXV62);
 | 
				
			||||||
 | 
					      LLVM_FALLTHROUGH;
 | 
				
			||||||
 | 
					    case ArchV60:
 | 
				
			||||||
 | 
					      FB.set(ExtensionHVXV60);
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return FB;
 | 
					  return FB;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue