mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174973 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			20 lines
		
	
	
		
			463 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			463 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
 | |
| ; Check that we are able to predicate instructions with abosolute
 | |
| ; addressing mode.
 | |
| 
 | |
| ; CHECK: if{{ *}}(p{{[0-3]+}}){{ *}}memw(##gvar){{ *}}={{ *}}r{{[0-9]+}}
 | |
| 
 | |
| @gvar = external global i32
 | |
| define i32 @test2(i32 %a, i32 %b) nounwind {
 | |
| entry:
 | |
|   %cmp = icmp eq i32 %a, %b
 | |
|   br i1 %cmp, label %if.then, label %if.end
 | |
| 
 | |
| if.then:
 | |
|   store i32 %a, i32* @gvar, align 4
 | |
|   br label %if.end
 | |
| 
 | |
| if.end:
 | |
|   ret i32 %b
 | |
| }
 |