blob: 15ae4e18ff38ecaf14e685113097cc63c518a8fe [file] [log] [blame]
Tom Stellard49f8bfd2015-01-06 18:00:21 +00001; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=CHECK
Niels Ole Salscheider719fbc92013-08-08 16:06:15 +00002
Tom Stellard79243d92014-10-01 17:15:17 +00003; CHECK: {{^}}fptrunc:
Tom Stellard326d6ec2014-11-05 14:50:53 +00004; CHECK: v_cvt_f32_f64_e32
Niels Ole Salscheider719fbc92013-08-08 16:06:15 +00005define void @fptrunc(float addrspace(1)* %out, double %in) {
6 %result = fptrunc double %in to float
7 store float %result, float addrspace(1)* %out
8 ret void
9}