aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/llvm.trunc.ll
blob: 5585477ef2945373a8195b908f056475e19f8ed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s

; CHECK-LABEL: {{^}}trunc_f32:
; CHECK: TRUNC

define void @trunc_f32(float addrspace(1)* %out, float %in) {
entry:
  %0 = call float @llvm.trunc.f32(float %in)
  store float %0, float  addrspace(1)* %out
  ret void
}

declare float @llvm.trunc.f32(float)