CodeGen: extend f16 conversions to permit types > float.
[oota-llvm.git] / test / CodeGen / R600 / llvm.trunc.ll
1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
3 ; CHECK-LABEL: @trunc_f32
4 ; CHECK: TRUNC
5
6 define void @trunc_f32(float addrspace(1)* %out, float %in) {
7 entry:
8   %0 = call float @llvm.trunc.f32(float %in)
9   store float %0, float  addrspace(1)* %out
10   ret void
11 }
12
13 declare float @llvm.trunc.f32(float)