]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/R600/sint_to_fp64.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / R600 / sint_to_fp64.ll
1 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=CHECK
2
3 ; CHECK: @sint_to_fp64
4 ; CHECK: V_CVT_F64_I32_e32
5 define void @sint_to_fp64(double addrspace(1)* %out, i32 %in) {
6   %result = sitofp i32 %in to double
7   store double %result, double addrspace(1)* %out
8   ret void
9 }