• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=mips -mattr=single-float  < %s | FileCheck %s
2
3define double @int2fp(i32 %a) nounwind {
4entry:
5; CHECK: int2fp
6; CHECK: __floatsidf
7	sitofp i32 %a to double		; <double>:0 [#uses=1]
8	ret double %0
9}
10
11define double @uint2double(i32 %a) nounwind {
12entry:
13; CHECK: uint2double
14; CHECK: __floatunsidf
15	uitofp i32 %a to double		; <double>:0 [#uses=1]
16	ret double %0
17}
18
19define i32 @double2int(double %a) nounwind {
20entry:
21; CHECK: double2int
22; CHECK: __fixdfsi
23  fptosi double %a to i32   ; <i32>:0 [#uses=1]
24  ret i32 %0
25}
26
27define i32 @double2uint(double %a) nounwind {
28entry:
29; CHECK: double2uint
30; CHECK: __fixunsdfsi
31  fptoui double %a to i32   ; <i32>:0 [#uses=1]
32  ret i32 %0
33}
34
35