mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47194 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
 | 
						|
; All of these should be eliminable
 | 
						|
 | 
						|
 | 
						|
define i32 @foo() {
 | 
						|
	ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
 | 
						|
}
 | 
						|
 | 
						|
define i32 @foo2() {
 | 
						|
	ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
 | 
						|
}
 | 
						|
 | 
						|
define i1 @foo3() {
 | 
						|
	ret i1 icmp ne (i1()* @foo3, i1()* null)
 | 
						|
}
 |