mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144863 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			32 lines
		
	
	
		
			772 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			772 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llc < %s -mcpu=corei7 -march=x86 -mattr=+sse41 -o %t
 | 
						|
; RUN: not grep extractps   %t
 | 
						|
; RUN: not grep pextrd      %t
 | 
						|
; RUN: not grep pshufd  %t
 | 
						|
; RUN: not grep movss   %t
 | 
						|
 | 
						|
define void @t1(float* %R, <4 x float>* %P1) nounwind {
 | 
						|
	%X = load <4 x float>* %P1
 | 
						|
	%tmp = extractelement <4 x float> %X, i32 3
 | 
						|
	store float %tmp, float* %R
 | 
						|
	ret void
 | 
						|
}
 | 
						|
 | 
						|
define float @t2(<4 x float>* %P1) nounwind {
 | 
						|
	%X = load <4 x float>* %P1
 | 
						|
	%tmp = extractelement <4 x float> %X, i32 2
 | 
						|
	ret float %tmp
 | 
						|
}
 | 
						|
 | 
						|
define void @t3(i32* %R, <4 x i32>* %P1) nounwind {
 | 
						|
	%X = load <4 x i32>* %P1
 | 
						|
	%tmp = extractelement <4 x i32> %X, i32 3
 | 
						|
	store i32 %tmp, i32* %R
 | 
						|
	ret void
 | 
						|
}
 | 
						|
 | 
						|
define i32 @t4(<4 x i32>* %P1) nounwind {
 | 
						|
	%X = load <4 x i32>* %P1
 | 
						|
	%tmp = extractelement <4 x i32> %X, i32 3
 | 
						|
	ret i32 %tmp
 | 
						|
}
 |