source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/R600/fptrunc.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 368 bytes
Line 
1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s
3
4; CHECK: {{^}}fptrunc:
5; CHECK: v_cvt_f32_f64_e32
6define void @fptrunc(float addrspace(1)* %out, double %in) {
7  %result = fptrunc double %in to float
8  store float %result, float addrspace(1)* %out
9  ret void
10}
Note: See TracBrowser for help on using the repository browser.