2012-08-24 20:40:15 +00:00
|
|
|
; RUN: llc -march=mipsel -O0 < %s | FileCheck %s -check-prefix=None
|
|
|
|
; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=Default
|
2011-09-29 23:52:13 +00:00
|
|
|
|
|
|
|
define void @foo1() nounwind {
|
|
|
|
entry:
|
2012-08-24 20:40:15 +00:00
|
|
|
; Default: jalr
|
|
|
|
; Default-NOT: nop
|
|
|
|
; Default: jr
|
|
|
|
; Default-NOT: nop
|
|
|
|
; Default: .end
|
|
|
|
; None: jalr
|
|
|
|
; None: nop
|
|
|
|
; None: jr
|
|
|
|
; None: nop
|
|
|
|
; None: .end
|
2011-09-29 23:52:13 +00:00
|
|
|
|
|
|
|
tail call void @foo2(i32 3) nounwind
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @foo2(i32)
|
2012-11-03 00:53:12 +00:00
|
|
|
|
|
|
|
; Check that cvt.d.w goes into jalr's delay slot.
|
|
|
|
;
|
|
|
|
define void @foo3(i32 %a) nounwind {
|
|
|
|
entry:
|
|
|
|
; Default: foo3:
|
|
|
|
; Default: jalr
|
|
|
|
; Default: cvt.d.w
|
|
|
|
|
|
|
|
%conv = sitofp i32 %a to double
|
|
|
|
tail call void @foo4(double %conv) nounwind
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @foo4(double)
|
|
|
|
|