mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reinstates commits r215111, 215115, 215116, 215117, 215136. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216982 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			367 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			367 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN:  %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
 | 
						|
 | 
						|
; Check that a variable is always aligned as specified.
 | 
						|
 | 
						|
@var = global i32 0, align 32
 | 
						|
define i32 @main() nounwind {
 | 
						|
  %addr = ptrtoint i32* @var to i64
 | 
						|
  %mask = and i64 %addr, 31
 | 
						|
  %tst = icmp eq i64 %mask, 0
 | 
						|
  br i1 %tst, label %good, label %bad
 | 
						|
good:
 | 
						|
  ret i32 0
 | 
						|
bad:
 | 
						|
  ret i32 1
 | 
						|
}
 |