mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	memset; we may need it to decide between MOVAPS and MOVUPS later. Adjust a test that was looking for wrong code. PR 3866 / 8675131. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119605 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			511 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			511 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llc -mtriple=x86_64-apple-darwin -mcpu=nehalem < %s | FileCheck %s
 | 
						|
 | 
						|
@a = common global [3 x i64] zeroinitializer, align 16
 | 
						|
 | 
						|
define i32 @main() nounwind ssp {
 | 
						|
; CHECK: movups
 | 
						|
entry:
 | 
						|
  %retval = alloca i32, align 4
 | 
						|
  store i32 0, i32* %retval
 | 
						|
  call void @llvm.memset.p0i8.i64(i8* bitcast (i64* getelementptr inbounds ([3 x i64]* @a, i32 0, i64 1) to i8*), i8 0, i64 16, i32 1, i1 false)
 | 
						|
  %0 = load i32* %retval
 | 
						|
  ret i32 %0
 | 
						|
}
 | 
						|
 | 
						|
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
 |