mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	llc using the host cpu features and *waning* on unknown features is probably not a good thing :-( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189144 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			26 lines
		
	
	
		
			723 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			723 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llc < %s -march=x86 -mattr=+sse4.1 | FileCheck %s
 | 
						|
 | 
						|
define <2 x i64> @shl1(<4 x i32> %r, <4 x i32> %a) nounwind readnone ssp {
 | 
						|
entry:
 | 
						|
; CHECK-NOT: shll
 | 
						|
; CHECK: pslld
 | 
						|
; CHECK: paddd
 | 
						|
; CHECK: cvttps2dq
 | 
						|
; CHECK: pmulld
 | 
						|
 | 
						|
  %shl = shl <4 x i32> %r, %a                     ; <<4 x i32>> [#uses=1]
 | 
						|
  %tmp2 = bitcast <4 x i32> %shl to <2 x i64>     ; <<2 x i64>> [#uses=1]
 | 
						|
  ret <2 x i64> %tmp2
 | 
						|
}
 | 
						|
 | 
						|
define <2 x i64> @shl2(<16 x i8> %r, <16 x i8> %a) nounwind readnone ssp {
 | 
						|
entry:
 | 
						|
; CHECK-NOT: shlb
 | 
						|
; CHECK: pblendvb
 | 
						|
; CHECK: pblendvb
 | 
						|
; CHECK: pblendvb
 | 
						|
  %shl = shl <16 x i8> %r, %a                     ; <<16 x i8>> [#uses=1]
 | 
						|
  %tmp2 = bitcast <16 x i8> %shl to <2 x i64>     ; <<2 x i64>> [#uses=1]
 | 
						|
  ret <2 x i64> %tmp2
 | 
						|
}
 |