blob: 5585477ef2945373a8195b908f056475e19f8ed3 [file] [log] [blame]
Stephen Hines36b56882014-04-23 16:57:46 -07001; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
Stephen Hines37ed9c12014-12-01 14:51:49 -08003; CHECK-LABEL: {{^}}trunc_f32:
Stephen Hines36b56882014-04-23 16:57:46 -07004; CHECK: TRUNC
5
6define void @trunc_f32(float addrspace(1)* %out, float %in) {
7entry:
8 %0 = call float @llvm.trunc.f32(float %in)
9 store float %0, float addrspace(1)* %out
10 ret void
11}
12
13declare float @llvm.trunc.f32(float)