mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	In preparation for the addition of other SIMD ISA extensions (such as QPX) we need to make sure that all Altivec patterns are properly predicated on having Altivec support. No functionality change intended (one test case needed to be updated b/c it assumed that Altivec intrinsics would be supported without enabling Altivec support). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177152 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			16 lines
		
	
	
		
			607 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			607 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s -march=ppc64 -mattr=+altivec | grep dst | count 4
 | |
| 
 | |
| define hidden void @_Z4borkPc(i8* %image) {
 | |
| entry:
 | |
| 	tail call void @llvm.ppc.altivec.dst( i8* %image, i32 8, i32 0 )
 | |
| 	tail call void @llvm.ppc.altivec.dstt( i8* %image, i32 8, i32 0 )
 | |
| 	tail call void @llvm.ppc.altivec.dstst( i8* %image, i32 8, i32 0 )
 | |
| 	tail call void @llvm.ppc.altivec.dststt( i8* %image, i32 8, i32 0 )
 | |
| 	ret void
 | |
| }
 | |
| 
 | |
| declare void @llvm.ppc.altivec.dst(i8*, i32, i32)
 | |
| declare void @llvm.ppc.altivec.dstt(i8*, i32, i32)
 | |
| declare void @llvm.ppc.altivec.dstst(i8*, i32, i32)
 | |
| declare void @llvm.ppc.altivec.dststt(i8*, i32, i32)
 |