mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-01 00:17:01 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26596 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			448 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			448 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep foo
 | |
| ; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep bar
 | |
| 
 | |
| ; Don't merge constants in different sections.
 | |
| 
 | |
| %G1 = internal constant int 1, section "foo"
 | |
| %G2 = internal constant int 1, section "bar"
 | |
| %G3 = internal constant int 1, section "bar"
 | |
| 
 | |
| void %test(int** %P1, int **%P2, int **%P3) {
 | |
|   store int* %G1, int** %P1
 | |
|   store int* %G2, int** %P2
 | |
|   store int* %G3, int** %P3
 | |
|   ret void
 | |
| }
 |