mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	This is equivalent to the AMDGPUTargetMachine now, but it is the starting point for separating R600 and GCN functionality into separate targets. It is recommened that users start using the gcn triple for GCN-based GPUs, because using the r600 triple for these GPUs will be deprecated in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225277 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-fp32-denormals,+fp64-denormals < %s | FileCheck -check-prefix=FP64-DENORMAL -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=+fp32-denormals,-fp64-denormals < %s | FileCheck -check-prefix=FP32-DENORMAL -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=+fp32-denormals,+fp64-denormals < %s | FileCheck -check-prefix=BOTH-DENORMAL -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-fp32-denormals,-fp64-denormals < %s | FileCheck -check-prefix=NO-DENORMAL -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI < %s | FileCheck -check-prefix=DEFAULT -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=-fp32-denormals < %s | FileCheck -check-prefix=DEFAULT -check-prefix=FUNC %s
 | |
| ; RUN: llc -march=amdgcn -mcpu=SI -mattr=+fp64-denormals < %s | FileCheck -check-prefix=DEFAULT -check-prefix=FUNC %s
 | |
| 
 | |
| ; FUNC-LABEL: {{^}}test_kernel:
 | |
| 
 | |
| ; DEFAULT: FloatMode: 192
 | |
| ; DEFAULT: IeeeMode: 0
 | |
| 
 | |
| ; FP64-DENORMAL: FloatMode: 192
 | |
| ; FP64-DENORMAL: IeeeMode: 0
 | |
| 
 | |
| ; FP32-DENORMAL: FloatMode: 48
 | |
| ; FP32-DENORMAL: IeeeMode: 0
 | |
| 
 | |
| ; BOTH-DENORMAL: FloatMode: 240
 | |
| ; BOTH-DENORMAL: IeeeMode: 0
 | |
| 
 | |
| ; NO-DENORMAL: FloatMode: 0
 | |
| ; NO-DENORMAL: IeeeMode: 0
 | |
| define void @test_kernel(float addrspace(1)* %out0, double addrspace(1)* %out1) nounwind {
 | |
|   store float 0.0, float addrspace(1)* %out0
 | |
|   store double 0.0, double addrspace(1)* %out1
 | |
|   ret void
 | |
| }
 |