blob: da26c7f76419c13001df9e158bdf09179dbdbfcb [file] [log] [blame]
Michael Kupersteinb34de722015-11-04 11:17:53 +00001; RUN: llc < %s | FileCheck %s
2
3target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
4target triple = "i386-pc-linux"
5
6; Function Attrs: nounwind
7; CHECK-LABEL: ll_to_d:
8; CHECK: calll __floatdidf
9define double @ll_to_d(i64 %n) #0 {
10entry:
11 %conv = sitofp i64 %n to double
12 ret double %conv
13}
14
15attributes #0 = { nounwind "use-soft-float"="true" }