configure: suncc: Add compiler arch support for Nehalem & Sandy Bridge
GCC does not appear to have a -march= string for Westmere, which is a bit surprising as it has a few more instructions than a Nehalem, but a few less than a Sandy Bridge. Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
		
							parent
							
								
									ddb009425c
								
							
						
					
					
						commit
						f2ce813e37
					
				
							
								
								
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @ -2182,6 +2182,8 @@ suncc_flags(){ | |||||||
|                     prescott|nocona)    echo -xarch=sse3 -xchip=pentium4 ;; |                     prescott|nocona)    echo -xarch=sse3 -xchip=pentium4 ;; | ||||||
|                     *-sse3)             echo -xarch=sse3                 ;; |                     *-sse3)             echo -xarch=sse3                 ;; | ||||||
|                     core2)              echo -xarch=ssse3 -xchip=core2   ;; |                     core2)              echo -xarch=ssse3 -xchip=core2   ;; | ||||||
|  |                     corei7)           echo -xarch=sse4_2 -xchip=nehalem  ;; | ||||||
|  |                     corei7-avx)       echo -xarch=avx -xchip=sandybridge ;; | ||||||
|                     amdfam10|barcelona|bdver*) echo -xarch=sse4_1        ;; |                     amdfam10|barcelona|bdver*) echo -xarch=sse4_1        ;; | ||||||
|                     athlon-4|athlon-[mx]p)    echo -xarch=ssea           ;; |                     athlon-4|athlon-[mx]p)    echo -xarch=ssea           ;; | ||||||
|                     k8|opteron|athlon64|athlon-fx) |                     k8|opteron|athlon64|athlon-fx) | ||||||
| @ -2655,7 +2657,7 @@ elif enabled x86; then | |||||||
|             disable cmov |             disable cmov | ||||||
|         ;; |         ;; | ||||||
|         # targets that do support conditional mov (cmov) |         # targets that do support conditional mov (cmov) | ||||||
|         i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx|core2|amdfam10|barcelona|atom|bdver*) |         i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx|core2|corei7*|amdfam10|barcelona|atom|bdver*) | ||||||
|             cpuflags="-march=$cpu" |             cpuflags="-march=$cpu" | ||||||
|             enable cmov |             enable cmov | ||||||
|             enable fast_cmov |             enable fast_cmov | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user