mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
5096dc74ae
Reviewed-by: Christian König <christian.koenig@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181775 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
526 B
LLVM
17 lines
526 B
LLVM
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=R600-CHECK %s
|
|
; RUN: llc < %s -march=r600 -mcpu=verde | FileCheck --check-prefix=SI-CHECK %s
|
|
|
|
; R600-CHECK: @amdgpu_trunc
|
|
; R600-CHECK: TRUNC * T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
|
|
; 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
|