mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +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
17 lines
551 B
LLVM
17 lines
551 B
LLVM
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=R600-CHECK %s
|
|
; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck --check-prefix=SI-CHECK %s
|
|
|
|
; R600-CHECK: {{^}}amdgpu_trunc:
|
|
; R600-CHECK: TRUNC T{{[0-9]+\.[XYZW]}}, KC0[2].Z
|
|
; SI-CHECK: {{^}}amdgpu_trunc:
|
|
; SI-CHECK: v_trunc_f32
|
|
|
|
define void @amdgpu_trunc(float addrspace(1)* %out, float %x) {
|
|
entry:
|
|
%0 = call float @llvm.AMDGPU.trunc(float %x)
|
|
store float %0, float addrspace(1)* %out
|
|
ret void
|
|
}
|
|
|
|
declare float @llvm.AMDGPU.trunc(float ) readnone
|