mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	This is done to avoid odd test failures, like the one fixed in r171243. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171250 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			15 lines
		
	
	
		
			501 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			501 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: opt -instcombine -S < %s | llvm-as
 | |
| ; RUN: opt -instcombine -globalopt -S < %s | llvm-as
 | |
| @G1 = global i32 zeroinitializer
 | |
| @G2 = global i32 zeroinitializer
 | |
| @g = global <2 x i32*> zeroinitializer
 | |
| %0 = type { i32, void ()* }
 | |
| @llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @test }]
 | |
| define internal void @test() {
 | |
|   %A = insertelement <2 x i32*> undef, i32* @G1, i32 0
 | |
|   %B = insertelement <2 x i32*> %A,  i32* @G2, i32 1
 | |
|   store <2 x i32*> %B, <2 x i32*>* @g
 | |
|   ret void
 | |
| }
 | |
| 
 |