mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			368 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			368 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s -march=c | \
 | |
| ; RUN:          grep {struct __attribute__ ((packed, aligned(} | count 4
 | |
| 
 | |
| define void @test(i32* %P) {
 | |
|         %X = load i32* %P, align 1
 | |
|         store i32 %X, i32* %P, align 1
 | |
|         ret void
 | |
| }
 | |
| 
 | |
| define void @test2(i32* %P) {
 | |
|         %X = volatile load i32* %P, align 2
 | |
|         volatile store i32 %X, i32* %P, align 2
 | |
|         ret void
 | |
| }
 | |
| 
 |