aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/fptrunc.ll
blob: 8ac8d3bf48d494b4a7c0d58bc81bc78714f116fd (plain)
1
2
3
4
5
6
7
8
9
; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=CHECK

; CHECK: {{^}}fptrunc:
; CHECK: v_cvt_f32_f64_e32
define void @fptrunc(float addrspace(1)* %out, double %in) {
  %result = fptrunc double %in to float
  store float %result, float addrspace(1)* %out
  ret void
}