mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-05 01:30:18 +00:00
instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167348 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
699 B
LLVM
38 lines
699 B
LLVM
; RUN: llc -march=mipsel -O0 < %s | FileCheck %s -check-prefix=None
|
|
; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=Default
|
|
|
|
define void @foo1() nounwind {
|
|
entry:
|
|
; Default: jalr
|
|
; Default-NOT: nop
|
|
; Default: jr
|
|
; Default-NOT: nop
|
|
; Default: .end
|
|
; None: jalr
|
|
; None: nop
|
|
; None: jr
|
|
; None: nop
|
|
; None: .end
|
|
|
|
tail call void @foo2(i32 3) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @foo2(i32)
|
|
|
|
; 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)
|
|
|