| Stephen Hines | 36b5688 | 2014-04-23 16:57:46 -0700 | [diff] [blame^] | 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) | ||||