mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	t2PLDi12, t2PLDi8, t2PLDs was omitted in Thumb2InstrInfo. This patch fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191441 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			23 lines
		
	
	
		
			634 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			634 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s -march=thumb -mattr=+v7         | FileCheck %s -check-prefix=THUMB2
 | |
| ; TODO: This test case will be merged back into prefetch.ll when ARM mode issue is solved.
 | |
| 
 | |
| declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
 | |
| 
 | |
| define void @t6() {
 | |
| entry:
 | |
| ;ARM: t6:
 | |
| ;ARM: pld [sp]
 | |
| ;ARM: pld [sp, #50]
 | |
| 
 | |
| ;THUMB2: t6:
 | |
| ;THUMB2: pld [sp]
 | |
| ;THUMB2: pld [sp, #50]
 | |
| 
 | |
| %red = alloca [100 x i8], align 1
 | |
| %0 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 0
 | |
| %1 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 50
 | |
| call void @llvm.prefetch(i8* %0, i32 0, i32 3, i32 1)
 | |
| call void @llvm.prefetch(i8* %1, i32 0, i32 3, i32 1)
 | |
| ret void
 | |
| }
 |