2013-02-23 05:10:03 +08:00
|
|
|
; RUN: llc -march=mips64el -mcpu=mips64r2 -O3 < %s |\
|
|
|
|
; RUN: FileCheck %s -check-prefix=HARD
|
2015-05-08 08:57:22 +08:00
|
|
|
; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=+soft-float < %s |\
|
2013-02-23 05:10:03 +08:00
|
|
|
; RUN: FileCheck %s -check-prefix=SOFT
|
|
|
|
|
|
|
|
; Check that %add is not passed in an integer register.
|
|
|
|
;
|
2013-07-14 14:24:09 +08:00
|
|
|
; HARD-LABEL: callfloor:
|
2013-02-23 05:10:03 +08:00
|
|
|
; HARD-NOT: dmfc1 $4
|
|
|
|
|
|
|
|
define double @callfloor(double %d) nounwind readnone {
|
|
|
|
entry:
|
|
|
|
%add = fadd double %d, 1.000000e+00
|
|
|
|
%call = tail call double @floor(double %add) nounwind readnone
|
|
|
|
ret double %call
|
|
|
|
}
|
|
|
|
|
|
|
|
declare double @floor(double) nounwind readnone
|
|
|
|
|
|
|
|
; Check call16.
|
|
|
|
;
|
2013-07-14 14:24:09 +08:00
|
|
|
; SOFT-LABEL: f64add:
|
2017-01-27 19:36:52 +08:00
|
|
|
; SOFT: jal __adddf3
|
2013-02-23 05:10:03 +08:00
|
|
|
|
|
|
|
define double @f64add(double %a, double %b) {
|
|
|
|
entry:
|
|
|
|
%add = fadd double %a, %b
|
|
|
|
ret double %add
|
|
|
|
}
|