diff options
Diffstat (limited to 'llvm/test/CodeGen/R600/llvm.trunc.ll')
| -rw-r--r-- | llvm/test/CodeGen/R600/llvm.trunc.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/llvm.trunc.ll b/llvm/test/CodeGen/R600/llvm.trunc.ll new file mode 100644 index 00000000000..fa6fb9906dd --- /dev/null +++ b/llvm/test/CodeGen/R600/llvm.trunc.ll @@ -0,0 +1,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) |

