mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 00:16:48 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97411 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			374 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			374 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s -march=ppc32 | grep mflr
 | |
| ; RUN: llc < %s -march=ppc32 | grep lwz
 | |
| ; RUN: llc < %s -march=ppc64 | grep {ld r., 16(r1)}
 | |
| 
 | |
| target triple = "powerpc-apple-darwin8"
 | |
| 
 | |
| define void @foo(i8** %X) nounwind {
 | |
| entry:
 | |
| 	%tmp = tail call i8* @llvm.returnaddress( i32 0 )		; <i8*> [#uses=1]
 | |
| 	store i8* %tmp, i8** %X, align 4
 | |
| 	ret void
 | |
| }
 | |
| 
 | |
| declare i8* @llvm.returnaddress(i32)
 | |
| 
 |